Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 172 -
------------------------------------------------------------------------------
6.18 Print formatted data to memory using variable arguments
.
<Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
vsprintf
[Syntax]
#include <stdio.h>
#include <stdarg.h>
int vsprintf( char *buffer, const char *format, va_list argptr ) ;
[Arguments]
buffer Buffer in which string is stored.
format Format control string.
argptr Pointer to a list of arguments.
[Return]
Returns number of characters which have been stored. (The last null
character is not counted.) If any error, returns negative value.
[Description]
Stores a series of formatted data in a buffer pointed "buffer". Each
arguments are stored with conversion according to the format
specification in "format". "argptr" is a pointer of va_list type
defined in stdarg.h. It points a list of arguments to be converted
and output according to format specifications of "format". Formats
of "format" are same as ones of "printf". See "printf" for details
of "format" and "argument".