Next: str_dtokcnt, Previous: str_trim, Up: Strings [Contents]
truncate white space at the end of a string
#include <suplib/str.h> char *str_trunc(char *string);
char *string
the string to truncate
str_trunc
truncates white space at the end of a string by
writing a ‘\0’ at the appropriate position in the string.
It alters the passed string.
It returns the pointer which it was passed.
Diab Jerius