Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

utils.c File Reference

Utility routines. More...

#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

Include dependency graph for utils.c:

Include dependency graph

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).


Detailed Description

Utility routines.

Author:
Lionel ULMER , Darryl Luff

Definition in file utils.c.


Function Documentation

char* trimtext const char *    s
 

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().


Generated on Sun May 9 19:19:26 2004 for GtkSQL by doxygen1.2.18