Typedefs | |
| typedef _GGZFile | GGZFile |
| Structure used internally by ggz_read_line(). | |
Functions | |
| char * | ggz_xml_escape (const char *str) |
| Escape XML characters in a text string. | |
| char * | ggz_xml_unescape (const char *str) |
| Restore escaped XML characters into a text string. | |
| GGZFile * | ggz_get_file_struct (int fdes) |
| Setup a file structure to use with ggz_read_line(). | |
| int | ggz_make_path (const char *full) |
| Create directories to fill out a path. | |
| char * | ggz_read_line (GGZFile *file) |
| Read a line of arbitrary length from a file. | |
| void | ggz_free_file_struct (GGZFile *file) |
| Deallocate a file structure allocated via ggz_get_file_struct(). | |
| int | ggz_strcmp (const char *s1, const char *s2) |
| String comparison function that is safe with NULLs. | |
| int | ggz_strcasecmp (const char *s1, const char *s2) |
| Case-insensitive string comparison function that is safe with NULLs The function returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2. | |
| char* ggz_xml_escape | ( | const char * | str | ) |
Escape XML characters in a text string.
| str | The string to encode |
| char* ggz_xml_unescape | ( | const char * | str | ) |
Restore escaped XML characters into a text string.
| str | The string to decode |
When using expat, incoming text is automatically unescaped by the expat library. It is therefore generally not necessary to use this function with expat.
| GGZFile* ggz_get_file_struct | ( | int | fdes | ) |
Setup a file structure to use with ggz_read_line().
| fdes | A preopened integer file descriptor to read from |
| int ggz_make_path | ( | const char * | full | ) |
Create directories to fill out a path.
New directories are created with permissions 700 (S_IRWXU).
| full | The full path to be created. |
| char* ggz_read_line | ( | GGZFile * | file | ) |
Read a line of arbitrary length from a file.
| file | A GGZFile structure allocated via ggz_get_file_struct() |
| void ggz_free_file_struct | ( | GGZFile * | file | ) |
Deallocate a file structure allocated via ggz_get_file_struct().
| file | A GGZFile structure allocated via ggz_get_file_struct() |
| int ggz_strcmp | ( | const char * | s1, | |
| const char * | s2 | |||
| ) |
String comparison function that is safe with NULLs.
| s1 | First string to compare | |
| s2 | Second string to compare |
| int ggz_strcasecmp | ( | const char * | s1, | |
| const char * | s2 | |||
| ) |
Case-insensitive string comparison function that is safe with NULLs The function returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.
NULL in considered to be less than any non-NULL string and equal to itself
| s1 | First string to compare | |
| s2 | Second string to compare |
1.5.1