Parent Directory | Revision Log | Patch
revision 1.141 by hauk, Sun Jan 9 01:16:08 2005 UTC | revision 1.142 by hauk, Sun Jan 9 01:32:53 2005 UTC | |
---|---|---|
# | Line 195 char *Util_ltrim(char *s) { | Line 195 char *Util_ltrim(char *s) { |
195 | ||
196 | while(*t==' ' || *t=='\t' || *t=='\r' || *t=='\n') t++; | while(*t==' ' || *t=='\t' || *t=='\r' || *t=='\n') t++; |
197 | if(t!=s) { | if(t!=s) { |
198 | int l= strlen(t); | char *r= s; |
199 | memmove(s, t, l); | do { |
200 | s[l]= 0; | *r++= *t; |
201 | } while(*t++); *r= 0; | |
202 | } | } |
203 | ||
204 | return s; | return s; |
205 | ||
206 | } | } |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |