|
llconf 0.0.2
|
Handling for collections of lines of text. More...
Data Structures | |
| struct | confline |
| A linked list representing the lines of text from a configuration file. More... | |
Macros | |
| #define | MAX_CONFLINE 1024 |
| The maximum length of the text content of a confline node. | |
Functions | |
| struct confline * | create_confline (const char *line) |
| Create a confline representing the given line of text. | |
| void | destroy_confline (struct confline *cl) |
| Destroy a confline and its copy of the contained text. | |
| void | destroy_confline_list (struct confline *cl_list) |
| Destroy a list of confline nodes. | |
| struct confline * | read_conflines (FILE *fptr) |
| Read the contents of a stream into a confline list. | |
| struct confline * | append_confline (struct confline *cl_list, struct confline *cl) |
| Append a confline to an existing confline list. | |
Handling for collections of lines of text.
The confline structure provides for storage of a list of lines of text.
| #define MAX_CONFLINE 1024 |
The maximum length of the text content of a confline node.
Append a confline to an existing confline list.
| [in] | cl_list | The existing list to which the given line is to be appended. May be NULL if creating a new list. |
| [in] | cl | The confline to append. |
| struct confline * create_confline | ( | const char * | line | ) |
| void destroy_confline | ( | struct confline * | cl | ) |
| void destroy_confline_list | ( | struct confline * | cl_list | ) |
Destroy a list of confline nodes.
destroy_confline will be called on each node in the list.
| [in] | cl_list | The head of the list of confline entries to free. |