diff -r e9cad8bd8ec8 -r 7e74a8d61b76 misc.c --- a/misc.c Tue Jan 02 01:45:46 2001 +0100 +++ b/misc.c Fri Jan 05 17:31:37 2001 +0100 @@ -160,6 +160,23 @@ } +void stripws(char *p) +{ + int l; + + l=strspn(p, " "); + if(l!=0) + strcpy(p, p+l); + l=strlen(p); + + while(--l>=0){ + if(*(p+l)!=' ') + break; + } + *(p+l+1)='\0'; +} + + /* */