File modules/ut/ut_string.c

  $Revision: 1.3 $

string utilities (ut).
Status: NOT REVUED, NOT TESTED

Included Files


Preprocessor definitions

#define SPACE 0

#define WORD 1


Global Function ut_string_chop()

void
ut_string_chop       removes trailing whitespaces from the string, replacing
                     them with '\0' characters. 
		     So it modifies the source string.
void ut_string_chop ( char* input )
char* input
source string
Prototyped in: modules/ut/ut_string.h
Calls: strchr()
Called by: PW_interact()modules/pw/protocol_whois.c

Global Function ut_string_compress()

char *
ut_string_compress    removes leading/trailing whitespaces and compresses 
                      multiple whitespaces to one. The result is an allocated
		      string and must be freed.
char* ut_string_compress ( char* input )
char* input
source string
Prototyped in: modules/ut/ut_string.h
Calls: malloc(), strchr(), strlen()
Called by: ER_macro_spec()modules/er/er_macro.c
  PC_interact()modules/pc/protocol_config.c