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.

This ONE is better commented.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.