| iMatix home page | << | < | > | >> |
SFL Version 2.10 |
#include "sflstr.h" char * getequval ( char *strline, char *strretstr)
get the everything on a line past a '='.
char strtest[] = { "progpath=c:\sfl"); char strret[256]; getequval (strtest, strret); This would return: "c:\sfl". Returns a pointer to head of the return buffer. Submitted by Scott Beasley <jscottb@infoave.com>
{ char *stroffset; stroffset = strstr (strline, "="); if (stroffset) ltrim ((stroffset + 1)); else return (char *)NULL; return strcpy (strretstr, (stroffset && *(stroffset + 1))? (stroffset + 1): ""); }
| << | < | > | >> | Copyright © 1996-99 iMatix Corporation |