Subj : String memory Allocation To : borland.public.cpp.borlandcpp From : M. Finch Date : Sun Oct 03 2004 10:33 am I'm still using char* and char mystring[stringsize] for strings....yes, I know. Its hard to change when you get old. I'm very confused about how memory is allocated for the char*. I'm looking at the example in BCC 5.02 of the strtok function. In the example, the declare: char input[16] = "abc,d"; char *p; p = strtok(input, ","); My question is how or where is memory allocated for the retuned string? If it is allocated in the function, how does one know that? After a bazillion calls to this function can it actually burn up all of the memory available? How do you release this memory if it is being used? I hope this is an appropriate place to ask this fundamental question. Thanks In advance .