?? rvansi.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 + -