|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#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;
ASSERT (strline);
ASSERT (strretstr);
stroffset = strstr (strline, "=");
if (stroffset)
ltrim ((stroffset + 1));
else
return (char *)NULL;
return strcpy (strretstr,
(stroffset && *(stroffset + 1))? (stroffset + 1): "");
}
| | << | < | > | >> |
|