Go to the source code of this file.
Define Documentation
Typedef Documentation
Function Documentation
The explain_printf_format function may be used to parse an argument format, and store the types of the arguments. It understands positional arguments, too.
- Parameters:
-
text | The text (format specification) to be parsed. |
result | Where to place the discovered format specifiers. (Will be cleared first, and cleared again if there are errors.) |
- Returns:
- 0 if there were no errors, >0 if something was odd (number indicates position in string).
The explain_printf_format_list_append function is used to add another formaat specifier to the list.
- Parameters:
-
lp | The list to operate on. |
datum | The additional format spec. |
- Returns:
- 0 on success, -1 if malloc() fails.
Definition at line 51 of file list.c.
The explain_printf_format_list_clear function is used to discard the contents of a list.
- Parameters:
-
lp | The list to operate on. |
Definition at line 44 of file list.c.
The explain_printf_format_list_constructor function is used to prepare a list for use. Failure to call it will cause segfaults.
- Parameters:
-
lp | The list to operate on. |
Definition at line 26 of file list.c.
The explain_printf_format_list_destructor function is used to release resources held by the list. Failure to call it will cause memory leaks.
- Parameters:
-
lp | The list to operate on. |
Definition at line 34 of file list.c.
The explain_printf_format_list_sort function is used to sort the format specifiers in the list, into ascending order of indexes. This is how you figure out the order and types of the remaining arguments.
- Parameters:
-
lp | The list to operate on. |
Definition at line 88 of file list.c.
The explain_print_format_representation function is used to parse a format string, and the print representations of all the arguments. This is used to print system call representations. The format string has already been printed.
- Parameters:
-
sb | When to print the representation |
format | The format string describing the rest of the arguments. |
ap | the rest of the arguments. |
Definition at line 40 of file representation.c.