N
Neil Fallon
Hi,
I'm new to C and having some problems passing a string to an array. I don't
know if I can do a direct assignment. I have a string (make) that I would
like to add to the array (itemList). itemList should be an array of 150
items. When I try to do a direct assignment the debugger tells me that I am
trying to pass a null string. If I display what is in make it has the data
there.
Neil
Char itemList[150];
itemList[0] = make;
I'm new to C and having some problems passing a string to an array. I don't
know if I can do a direct assignment. I have a string (make) that I would
like to add to the array (itemList). itemList should be an array of 150
items. When I try to do a direct assignment the debugger tells me that I am
trying to pass a null string. If I display what is in make it has the data
there.
Neil
Char itemList[150];
itemList[0] = make;