NetBurner 3.5.0
PDF Version
 
File Descriptor Printf - fdprintf

Functions

int fdprintf (int fc, const char *format,...)
 printf to a file descriptor
 
int fdiprintf (int fc, const char *format,...)
 printf to a file descriptor with integer (no floating point) support
 
int vfdprintf (int fc, const char *format, va_list arg)
 printf to a file descriptor using va_list arguments
 
int vfdiprintf (int fc, const char *format, va_list arg)
 printf to a file descriptor with integer (no floating point) support using va_list arguments
 

Detailed Description

#include< fdprintf.h >

The printf() function is a valuable tool for messages at runtime, status, and debugging. The fdprintf() uses the same parameters, but is used to printf to any file descriptor, such as serial ports, network interfaces, and custom file descriptors.

Note
Please refer to the fdprintf() example in the "\nburn\examples\Filedescriptor" folder. There are also examples on how to create a custom file descriptor.

Function Documentation

◆ fdiprintf()

int fdiprintf ( int fc,
const char * format,
... )

#include <fdprintf.h>

printf to a file descriptor with integer (no floating point) support

Parameters
fcFile descriptor to print to.
formatFormat string, same format as standard printf().
...Arguments specified by format string.
Returns
Number of bytes written.

◆ fdprintf()

int fdprintf ( int fc,
const char * format,
... )

#include <fdprintf.h>

printf to a file descriptor

Parameters
fcFile descriptor to print to.
formatFormat string, same format as standard printf().
...Arguments specified by format string.
Returns
Number of bytes written.

◆ vfdiprintf()

int vfdiprintf ( int fc,
const char * format,
va_list arg )

#include <fdprintf.h>

printf to a file descriptor with integer (no floating point) support using va_list arguments

Parameters
fcFile descriptor to print to.
formatFormat string, same format as standard printf().
argArguments specified by format string of type va_list (Variable Arguments)
Returns
Number of bytes written.

◆ vfdprintf()

int vfdprintf ( int fc,
const char * format,
va_list arg )

#include <fdprintf.h>

printf to a file descriptor using va_list arguments

Parameters
fcFile descriptor to print to.
formatFormat string, same format as standard printf().
argArguments specified by format string of type va_list (Variable Arguments)
Returns
Number of bytes written.