logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

struncstr - convert printable C string notation to a memory block

Author

       Lars Wirzenius (lars.wirzenius@helsinki.fi)

Publib                                        C Programmer's Manual                              STRUNCSTR(3pub)

Description

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.

Name

       struncstr - convert printable C string notation to a memory block

See Also

publib(3), strcstr(3)

Synopsis

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

See Also