|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 235 (0xeb)
Types: TextFile
Names: »trim.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
└─⟦this⟧ »EUUGD11/euug-87hel/sec1/news/misc/search/lib/trim.c«
/* Trim leading and trailing whitespace. */
#include "defs.h"
char *
trim(s)
register char *s;
{
register char *p;
while (isspace(*s))
++s;
p= s + strlen(s) - 1;
while (p >= s && isspace(*p))
--p;
p[1]= EOS;
return s;
}