rtapi_snprintf3rtapi
Perform snprintf-like string formatting
Usage
int rtapi_snprintf(char *buf, unsigned long int size, const char *fmt, ...)
int rtapi_vsnprintf(char *buf, unsigned long int size, const char *fmt, va_list apfB)
Arguments
As for snprintf(3) or vsnprintf(3).
Overview
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.
Realtime considerations
May be called from non-realtime, init/cleanup, and realtime code.
Return value
The number of characters written to buf.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.