⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rvansi.c

📁 基于h323协议的软phone
💻 C
字号:
/************************************************************************
 File Name     : rvansi.c
 Description   :
************************************************************************
        Copyright (c) 2002 RADVISION Inc. and RADVISION Ltd.
************************************************************************
NOTICE:
This document contains information that is confidential and proprietary
to RADVISION Inc. and RADVISION Ltd.. No part of this document may be
reproduced in any form whatsoever without written prior approval by
RADVISION Inc. or RADVISION Ltd..

RADVISION Inc. and RADVISION Ltd. reserve the right to revise this
publication and make changes without obligation to notify any person of
such revisions or changes.
***********************************************************************/

#include "rvansi.h"


#ifdef RV_ANSI_USECUSTOMSTRINGFORMATTING

static RvInt RvVsscanf(RvChar* s, const RvChar* format, va_list arg)
{
    return -1;  /* Return an error until implemented */      
} 

/*$
{function:
	{name: RvVsprintf}
	{superpackage: CUtils}
	{description: 
        {p: This function implements an ANSI vsprintf style function.}} 
	{proto: RvInt RvVsprintf(RvChar* s, const RvChar* format, va_list arg);}
	{params:
		{param: {n: s}       {d: The string to which to write.}}
		{param: {n: format}  {d: A sprintf style format string.}}
		{param: {n: arg}     {d: A variable argument list.}}
	}
    {returns: The number of characters written, or negative if an error occurred.}
}
$*/
RVCOREAPI RvInt RVCALLCONV RvVsprintf(RvChar* s, const RvChar* format, va_list arg)
{
    return -1;  /* Return an error until implemented */     
} 



/*$
{function:
	{name: RvSprintf}
	{superpackage: CUtils}
	{description: 
        {p: This function implements an ANSI sprintf style function.}} 
	{proto: RvInt RvSprintf(RvChar* s, const RvChar* format, ...);}
	{params:
		{param: {n: s}       {d: The string to which to write.}}
		{param: {n: format}  {d: A sprintf style format string.}}
		{param: {n: ...}     {d: A variable argument list.}}
	}
    {returns: The number of characters written, or negative if an error occurred.}
}
$*/
RVCOREAPI RvInt RVCALLCONV RvSprintf(RvChar* s, const RvChar* format, ...)
{
    RvInt ret; 
    va_list arg; 

    va_start(arg, format); 
    ret = RvVsprintf(s, format, arg);
    va_end(arg);

    return ret; 
}  

/*$
{function:
	{name: RvSscanf}
	{superpackage: CUtils}
	{description: 
        {p: This function implements an ANSI sscanf style function.}} 
	{proto: RvInt RvSscanf(RvChar* s, const RvChar* format, ...);}
	{params:
		{param: {n: s}       {d: The string from which to read.}}
		{param: {n: format}  {d: A sscanf style format string.}}
		{param: {n: ...}     {d: A variable argument list.}}
	}
    {returns: The number input items converted, or EOF if an error occured.}
}
$*/
RVCOREAPI RvInt RVCALLCONV RvSscanf(RvChar* s, const RvChar* format, ...)
{
    int ret; 
    va_list arg; 

    va_start(arg, format); 
    ret = RvVsscanf(s, format, arg);
    va_end(arg);

    return ret; 
} 

#endif


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -