Synopsis
int ctl_printf(const char *fmt,
               ...);
Description

ctl_printf writes to the standard output stream under control of the string pointed to by fmt that specifies how subsequent arguments are converted for output.

If there are insufficient arguments for the format, the behavior is undefined. If the format is exhausted while arguments remain, the excess arguments are evaluated but are otherwise ignored.

Return Value

ctl_printf returns the number of characters transmitted, or a negative value if an output or encoding error occurred.