DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C (http://www.daniweb.com/forums/forum118.html)
-   -   Need help processing and storing a whitespace-delimited c-string. (http://www.daniweb.com/forums/thread96922.html)

Ratte Nov 15th, 2007 6:59 pm
Need help processing and storing a whitespace-delimited c-string.
 
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.

Aia Nov 15th, 2007 9:24 pm
Re: Need help processing and storing a whitespace-delimited c-string.
 
This ONE is better commented.


All times are GMT -4. The time now is 7:27 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC