| | |
Need help processing and storing a whitespace-delimited c-string.
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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.
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.
This ONE is better commented.
Last edited by Aia; Nov 15th, 2007 at 9:28 pm.
"If it moves, tax it. If it keeps moving, regulate it, and if it stops moving, subsidize it" - Ronald Reagan
![]() |
Similar Threads
- Tutorial: User Input: Strings and Numbers [C] (C)
- preg_match validation help please (PHP)
- help reading from .txt file (C++)
- <string> (C++)
- whitespace (C++)
- This ought to be simple - extra spaces (PHP)
- Help with input (C)
- new and in need (ASP)
- Help in Input output C files (C)
- Fun with Forms (PHP)
Other Threads in the C Forum
- Previous Thread: Calendar program
- Next Thread: representing binary values
Views: 1261 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C
#include * .net append array arrays asterisks binarysearch calculate changingto char character cm command copyimagefile cprogramme creafecopyofanytypeoffileinc database directory dynamic execv feet fgets file fork forloop framework function functions givemetehcodez grade graphics gtkwinlinux hacking histogram homework include incrementoperators input intmain() iso kernel keyboard km lazy license linked linkedlist linux list lists locate logical_drives looping loopinsideloop. lowest matrix microsoft mqqueue mysql number oddnumber odf opensource overwrite owf pdf performance pointer pointers posix probleminc process program programming radix recursion recv recvblocked research reversing scanf scripting segmentationfault sequential socket spoonfeeding standard string student systemcall testing threads turboc unix user variable wab whythiscodecausesegmentationfault windowsapi






