#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
Include dependency graph for utils.c:
Go to the source code of this file.
Functions | |
void | add_space (FILE *f, const int exists, const int todo) |
Writes spaces to the file. | |
char * | trimtext (const char *s) |
Returns a copy of the passed string with leading whitespace removed. | |
char * | get_short_filename (char *fn) |
Get the shortened filename (without the path). |
Definition in file utils.c.
|
Returns a copy of the passed string with leading whitespace removed. The pointer returned is to a static buffer, so don't free it. The contents will be overwritten on the next call to this function so if you need to keep it, make a copy (like char *mystring = strdup(trimtext(" hello"));. Definition at line 46 of file utils.c. Referenced by xp_DBget_field_value_content(). |