logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

rtapi_snprintf, rtapi_vsnprintf - Perform snprintf-like string formatting

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.

       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.

Name

       rtapi_snprintf, rtapi_vsnprintf - Perform snprintf-like string formatting

Realtime Considerations

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

Return Value

       The number of characters written to buf.

See Also

printf(3)

LinuxCNC Documentation                             2006-10-12                             rtapi_snprintf(3rtapi)

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)

See Also