Recursively prints the a node to a C string
Marcel Sondaar
Public Domain
printnode.c | Recursively prints the a node to a C string |
Functions | |
strnput | safe write returning written length as neither strncpy nor strncat can do this efficiently A null terminator will always be placed. |
static int strnput( char * out, const char * in, size_t max )
safe write returning written length as neither strncpy nor strncat can do this efficiently A null terminator will always be placed.
out | pointer to the char array to write |
in | pointer to the null-terminated input string |
max | maximum number of characters to copy. |
return | number of characters copied |
safe write returning written length as neither strncpy nor strncat can do this efficiently A null terminator will always be placed.
static int strnput( char * out, const char * in, size_t max )