First of all, you have to allocate n + 1 chars for a string of length n, because of the trailing 0 meaning end of string.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 9 of 9
Thread: using free function after mallocThreaded View
|
Click Here to Expand Forum to Full Width |