Breaking down letters of a string in "C"
Hey all,
I am trying to have a number inputted as a string such as "1011", then breaking that string down as… "1" "0" "1" "1", and storing each individual part of the string into an array.
Could anyone help me out here as to how I would go about doing that? I really need help, I've been struggling for awhile now.
Thank you all in advance.
Don't Know anything about C, but there you go: http://forums.devshed.com/c-programming-42/split-function-for-c-on-redhat-54258.html
http://cboard.cprogramming.com/archive/index.php/t-61996.html
It seems that C doesn't have its own split() function, so you have to tokenize the string using function strtok ;)
btw 5 min google…
damn to miss out whole verb, I should seriously get a coffee
Why'd you start a new thread?
http://www.hellboundhackers.org/forum/help_converting_binary_to_decimal_in_c-22-13666_0.html
Read through the code I posted and you should figure it out.