| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

removechars

#include "sflstr.h"
char *
removechars (
    char *strbuf,
    char *chrstorm)

Synopsis

Removes known chars from a string. Returns pointer to head of the buffer. Submitted by Scott Beasley jscottb@infoave.com

Source Code - (sflstr.c)

{
   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;
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation