Re: Text parsing with standard C
Try this (It may work, I'm nowhere near a compiler to check it out myself)
int Count = 0;
int InternalCount = 0;
char *source = MyXMLCode;
char *target = ThePlaceImPuttingMyMenus;
while(*(source + Count) != '\0') Count++;
while((*(source + InternalCount) != '<') & (InternalCount != Count)) InternalCount++;
InternalCount++;
while((*(source + InternalCount) != '>') & (InternalCount != Count)) *target++ = *(source+InternalCount++);
*target = '\0';
__________________
If God made me in his image, he's one fat ugly biatch.
I always get the soggy biscuit
Veni Vidi Codi
|