Tor 0.4.9.3-alpha-dev
Loading...
Searching...
No Matches
string Directory Reference

lib/string: Low-level string manipulation.

More...

Files

 compat_ctype.c
 Locale-independent character-type inspection (backend)
 
 compat_ctype.h
 Locale-independent character-type inspection (header)
 
 compat_string.c
 Useful string-processing functions that some platforms don't provide.
 
 compat_string.h
 Header for compat_string.c.
 
 parse_int.c
 Convert strings into the integers they encode, with bounds checking.
 
 parse_int.h
 Header for parse_int.c.
 
 printf.c
 Compatibility wrappers around snprintf and its friends.
 
 printf.h
 Header for printf.c.
 
 scanf.c
 Locale-independent minimal implementation of sscanf().
 
 scanf.h
 Header for scanf.c.
 
 util_string.c
 Non-standard string functions used throughout Tor.
 
 util_string.h
 Header for util_string.c.
 

Detailed Description

lib/string: Low-level string manipulation.

We have a number of compatibility functions here: some are for handling functionality that is not implemented (or not implemented the same) on every platform; some are for providing locale-independent versions of libc functions that would otherwise be defined differently for different users.

Other functions here are for common string-manipulation operations that we do in the rest of the codebase.

Any string function high-level enough to need logging belongs in a higher-level module.