| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflstr.h" char * movestrpast ( char **strBuff, char cCharToEatPast)
Eats chars past first occurrence of one of the chars contained in strCharsToEatPast.
char strBuff[] = { "123, 456, 789" }; movestrpast (&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); ltrim (*strBuff); while (**strBuff && **strBuff != cCharToEatPast) deletechar (*strBuff, 0); if (**strBuff && **strBuff == cCharToEatPast) deletechar (*strBuff, 0); return *strBuff; }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |