| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflstr.h" char * removechars ( char *strbuf, char *chrstorm)
Removes known chars from a string. Returns pointer to head of the buffer. Submitted by Scott Beasley jscottb@infoave.com
{ char *offset; ASSERT (strbuf); ASSERT (chrstorm); offset = (char *)NULL; while (*strbuf) { offset = strpbrk (strbuf, chrstorm); if (offset) strcpy (offset, (offset + 1)); /* NO OVERRUN */ else break; } return strbuf; }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |