I have 2 functions, they are called SplitInt(unsigned int x) and SplitChar(char x[])
SplitInt takes in any positive integer, such as 12345, and puts each digit into an integer array, but backwards. So for SplitInt(12345) the array would look like this:
array[0] = 5
array[1] = 4
array[2] = 3
array[3] = 2
array[4] = 1
SplitChar() is supposed to do the same thing but take in a C-Style string, such as "12345".
How would I separate the individual digits and send them into an integer array? I am not allowed to use string class.
Thanks!
chararray and that1 = '1' - '0'