home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progc
/
snip0492.arj
/
STRTRIM.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-10
|
267b
|
16 lines
/*
** STRTRIM.C - trims trailing spaces off of a string
*/
#include <string.h>
char *strtrim(char *str)
{
register int i;
for (i = strlen(str) - 1; str[i] == ' ' && i >= 0; i--)
;
str[i+1]='\0';
return(str);
}