This documentation is no longer maintained. For documentation of the current version of emc2, please see http://www.linuxcnc.org/docview/html

rtapi_snprintf

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
REALTIME CONSIDERATIONS
RETURN VALUE
SEE ALSO

NAME

rtapi_snprintf, rtapi_vsnprintf − Perform snprintf-like string formatting

SYNTAX

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).

DESCRIPTION

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

REALTIME CONSIDERATIONS

May be called from user, init/cleanup, and realtime code.

RETURN VALUE

The number of characters written to buf.

SEE ALSO

printf(3)