File: rtapi_snprintf.3rtapi

package info (click to toggle)
linuxcnc 1%3A2.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 285,604 kB
  • sloc: python: 202,568; ansic: 109,036; cpp: 99,239; tcl: 16,054; xml: 10,631; sh: 10,303; makefile: 1,255; javascript: 138; sql: 72; asm: 15
file content (31 lines) | stat: -rw-r--r-- 960 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.TH rtapi_snprintf "3rtapi" "2006-10-12" "LinuxCNC Documentation" "RTAPI"
.SH NAME

rtapi_snprintf, rtapi_vsnprintf \- Perform snprintf-like string formatting

.SH SYNTAX
.HP
 int rtapi_snprintf(char *\fIbuf\fR, unsigned long int \fIsize\fR, const char *\fIfmt\fR, \fI...\fR)

.HP
 int rtapi_vsnprintf(char *\fIbuf\fR, unsigned long int \fIsize\fR, const char *\fIfmt\fR, va_list \fIapfB)

.SH  ARGUMENTS
As for \fIsnprintf(3)\fR or \fIvsnprintf(3)\fR.

.SH DESCRIPTION
These functions work like the standard C printf functions, except that a
reduced set of formatting operations are supported.

In particular: formatting of long long values is not supported.  Formatting of
floating-point values is done as though with %A even when other formats like %f
are specified.

.SH REALTIME CONSIDERATIONS
May be called from non-realtime, init/cleanup, and realtime code.

.SH RETURN VALUE
The number of characters written to \fIbuf\fR.

.SH SEE ALSO
\fBprintf(3)\fR