Home
Highly Reusable Software By activity User Interface Text Strings Math Processing
Stored Data
Communications
Hard World File System
|
#License - #Source code - #Example Use -
#include <librock/parse.h> char * librock_decodeCBE( char *pszBackslashEscaped, /* NUL terminated string */ int *pcb );
Other characters which follow a backslash character are stored literally (but the backslash itself is not.)
If (pcb), the number of characters in the translated string is stored at *pcb. (This allows \0 to be used within the string.
Typical use is to allow a parameter (command line or configuration) to specify characters which include special characters.
#ifdef librock_TYPICAL_USE_decodeCBE char *ptr = "Try\x20this\040test.\n"; librock_decodeCBE(ptr,0); printf("%s",ptr); #endif
librock_sscharbe()
Copyright 1998-2002 Forrest J. Cavalier III, http://www.mibsoftware.com Open-source under MIT license. NO WARRANTY. Copies must retain this block. License text in <librock/license/mit.txt> librock_LIDESC_HC=cc598307414a9997b32b60a2e7a8e7c6a13d6438SEE ALSOReference: librock_sscharbe
Verbatim copying and distribution of this generated page is permitted in any medium provided that no changes are made.
(The source of this manual page may be covered by a more permissive license which allows modifications.)
Want to help? We welcome comments, patches. -- Need help? Request paid support.