rtapi_snprintf(3rtapi)

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.

  1. 12
  2. 13

From linuxcnc-uspace-dev 1:2.9.4-2+deb13u1 in Debian 13 (Trixie). Parsed by carta from the page's man source.