Re: cannot read after \n using strtok()
- From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
- Date: Sun, 04 Nov 2007 01:29:28 +0000
"ohaqqi@xxxxxxxxx" <ohaqqi@xxxxxxxxx> writes:
Hi guys, I'm trying to figure out the problem with my C code below
implementing strtok().
"using" not "implementing".
filecontent_p is a pointer to my large array that will store the
information. I am able to read the first line containing the header
information using the first strtok() command. Any subsequent reads are
not possible.
Then you probably did not post the part that matters. You showed one
line being processed -- I'd want to see how the data was read and how
you move on to the next line. In fact, I'd prefer to see a small,
compilable, example that shows the problem. Just writing such a test
case might allow you to find the error you self.
--
Ben.
.
- Follow-Ups:
- Re: cannot read after \n using strtok()
- From: ohaqqi@xxxxxxxxx
- Re: cannot read after \n using strtok()
- References:
- cannot read after \n using strtok()
- From: ohaqqi@xxxxxxxxx
- cannot read after \n using strtok()
- Prev by Date: Re: Meaning of memset
- Next by Date: Re: mnemonic
- Previous by thread: cannot read after \n using strtok()
- Next by thread: Re: cannot read after \n using strtok()
- Index(es):