I am allocation memory using the following code
list = (char *)malloc(sizeof(char)*10);
What is returned to me is is 14 instead of ten....If I use any number I get 4 extra characters. So when I go to print out the contents of list I get four characters that I can not use. The only I have found a way around this is to make a temp char array and store my values in there then strcpy them into the char *. The problem is that I am bound to a static array again. Does anyone have any ideas on how or why this happens and how I might resovle the issue?? Thanks.