SDDSlib
|
Provides functions to manage and format table header strings. More...
#include "mdb.h"
Go to the source code of this file.
Functions | |
void | add_to_headers (char **header, long n_headers, char **item, long min_width, long format) |
long | format_length (char *format) |
void | add_to_standard_headers (char *name_header, char *unit_header, char *printf_string, char *new_name, char *new_unit, char *new_format, long min_width) |
Adds new standard headers to name, unit, and printf string headers. | |
Provides functions to manage and format table header strings.
Definition in file headers.c.
void add_to_headers | ( | char ** | header, |
long | n_headers, | ||
char ** | item, | ||
long | min_width, | ||
long | format ) |
Definition at line 18 of file headers.c.
void add_to_standard_headers | ( | char * | name_header, |
char * | unit_header, | ||
char * | printf_string, | ||
char * | new_name, | ||
char * | new_unit, | ||
char * | new_format, | ||
long | min_width ) |
Adds new standard headers to name, unit, and printf string headers.
This function facilitates adding a new set of standard headers, including name, unit, and format strings, to the respective header arrays. It ensures that the new headers conform to the specified minimum width.
name_header | The header string for names. |
unit_header | The header string for units. |
printf_string | The header string for printf format specifiers. |
new_name | The new name to add to the name header. |
new_unit | The new unit to add to the unit header. |
new_format | The new format specifier to add to the printf string header. |
min_width | The minimum acceptable width for the new headers. |
Definition at line 96 of file headers.c.