Simple array/pointer problem...
If I declare a character array and want to add an item to the array, without having it point to that item, for example:
char * arr;
for(loop where temp is always changing)
array[i] = temp;
for(loop through array)
How can I make it so that all elements in the array do not point to the current temp value, but point to what temp was at that time? I know its a pointer problem, but I don't really understand pointers that well.