Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 168 -
------------------------------------------------------------------------------
6.14 Print formatted data to memory
. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
sprintf
[Syntax]
#include <stdio.h>
int sprintf( char *buffer, const char *format [, argument]... ) ;
[Arguments]
buffer Buffer in which string is stored.
format Format control string.
argument Optional arguments.
[Return]
Returns number of characters which have been stored in the buffer.
(The last null character is not counted.)
[Description]
Stores a series of formatted data in a buffer. Each arguments (if
exist) are stored with conversion according to the format
specification in "format". Formats of "format" are same as ones of
"printf". See "printf" for details of "format" and "argument".