Michael Jerris 3abb7730b2 add xmlrpc-c 1.03.14 to in tree libs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3772 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-12-21 03:57:49 +00:00

54 lines
753 B
C

#include "xmlrpc-c/abyss.h"
#include "token.h"
void
NextToken(char ** const p) {
abyss_bool gotToken;
gotToken = FALSE;
while (!gotToken) {
switch (**p) {
case '\t':
case ' ':
++(*p);
break;
default:
gotToken = TRUE;
};
}
}
char *
GetToken(char ** const p) {
char * p0;
p0 = *p;
while (1) {
switch (**p) {
case '\t':
case ' ':
case CR:
case LF:
case '\0':
if (p0 == *p)
return NULL;
if (**p) {
**p = '\0';
++(*p);
};
return p0;
default:
++(*p);
};
}
}