DOKK / manpages / debian 12 / publib-dev / struncstr.3pub.en
STRUNCSTR(3pub) C Programmer's Manual STRUNCSTR(3pub)

struncstr - convert printable C string notation to a memory block

#include <publib.h>
void struncstr(void *block, const char *str, size_t max);

struncstr converts a C string literal to the memory block it describes by converting all escape sequences to single characters. See a C reference manual or strcstr(3) for a description of the C string literal notation.

max is the maximum number of characters to store into the memory block.

publib(3), strcstr(3)

Lars Wirzenius (lars.wirzenius@helsinki.fi)

C Programmer's Manual Publib