remove leading and trailing white space from a string
#include <suplib/str.h>char *str_prune(char *str);
char *str
- the string to modify
str_prune
removes leading and trailing white space from a string.
It truncates the string at the first trailing white space, then moves
the string to the left, starting at the first non-white space character.
The input string is modified.
It returns the pointer which it was passed.
Diab Jerius