944,008 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1740
  • C RSS
Nov 15th, 2007
0

Need help processing and storing a whitespace-delimited c-string.

Expand Post »
I need to write a function that will take a char* string and populate a char* array with elements of the original string. The elements of the original string are whitespace-delimited.

I have seen a function do this, but it is somewhat complex (deals with a lot more factors and is poorly documented). It uses loops and pointer operations. I just need some help to get me on the right track.

Thank you.
Last edited by Ratte; Nov 15th, 2007 at 7:00 pm.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
Ratte is offline Offline
38 posts
since Oct 2007
Nov 15th, 2007
0

Re: Need help processing and storing a whitespace-delimited c-string.

This ONE is better commented.
Last edited by Aia; Nov 15th, 2007 at 9:28 pm.
Aia
Reputation Points: 2224
Solved Threads: 218
Nearly a Posting Maven
Aia is offline Offline
2,304 posts
since Dec 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Calendar program
Next Thread in C Forum Timeline: representing binary values





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC