/ docs / man / man3 / rtapi_snprintf.3rtapi
rtapi_snprintf.3rtapi
 1  .TH rtapi_snprintf "3rtapi" "2006-10-12" "LinuxCNC Documentation" "RTAPI"
 2  .SH NAME
 3  
 4  rtapi_snprintf, rtapi_vsnprintf \- Perform snprintf-like string formatting
 5  
 6  .SH SYNTAX
 7  .HP
 8   int rtapi_snprintf(char *\fIbuf\fR, unsigned long int \fIsize\fR, const char *\fIfmt\fR, \fI...\fR)
 9  
10  .HP
11   int rtapi_vsnprintf(char *\fIbuf\fR, unsigned long int \fIsize\fR, const char *\fIfmt\fR, va_list \fIapfB)
12  
13  .SH  ARGUMENTS
14  As for \fIsnprintf(3)\fR or \fIvsnprintf(3)\fR.
15  
16  .SH DESCRIPTION
17  These functions work like the standard C printf functions, except that a
18  reduced set of formatting operations are supported.
19  
20  In particular: formatting of long long values is not supported.  Formatting of
21  floating-point values is done as though with %A even when other formats like %f
22  are specified.
23  
24  .SH REALTIME CONSIDERATIONS
25  May be called from user, init/cleanup, and realtime code.
26  
27  .SH RETURN VALUE
28  The number of characters written to \fIbuf\fR.
29  
30  .SH SEE ALSO
31  \fBprintf(3)\fR