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

Reply

Join Date: Oct 2007
Posts: 35
Reputation: Ratte is an unknown quantity at this point 
Solved Threads: 0
Ratte's Avatar
Ratte Ratte is offline Offline
Light Poster

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

 
0
  #1
Nov 15th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 2,030
Reputation: Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of 
Solved Threads: 176
Aia's Avatar
Aia Aia is offline Offline
Postaholic

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

 
0
  #2
Nov 15th, 2007
This ONE is better commented.
Last edited by Aia; Nov 15th, 2007 at 9:28 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC