|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#include "sflstr.h"
char *
eatstrpast (
char **strBuff,
char *strCharsToEatPast)
Eats chars past first occurrence of one of the chars contained in strCharsToEatPast.
char strBuff[] = { " , 456, 789" };
eatstrpast (&strBuff, ",");
On return here strBuff would be: " 456, 789".
Returns a pointer to head of the input buffer.
Submitted by Scott Beasley <jscottb@infoave.com>
{
ASSERT (strBuff);
ASSERT (strCharsToEatPast);
ltrim (*strBuff);
while (**strBuff && strchr (strCharsToEatPast, **strBuff))
deletechar (*strBuff, 0);
return *strBuff;
}
| | << | < | > | >> |
|