|
From: lonestar36 <lon...@go...> - 2001-07-21 00:45:16
|
You might try to use strtok
char string[24] = "4321$$$abcd$$$ddef";
char *p;
p = strtok(string,"$$$");
printf("%s", p);
p = strtok(NULL."$$$");
printf("%s", p);
----- Original Message -----
From: "Ian Weston" <lak...@ho...>
To: <dev...@li...>
Sent: Friday, July 20, 2001 4:13 PM
Subject: [Dev-C++] searching text
> hi all. im writing a program at the moment which stores peoples names and
> address to a text file. it saves it all as one long sting and seperating
> each feild is $$$. i need to know how to search the text so that i can
find
> where each feild begins.
>
> please could somebody help.
>
> thanks, ian.
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|