Posted By: JimFox
Code Conversion - 06/18/11 19:57
Hello,
I have a piece of old code (C-Script) with the following command:
string is_sNpcLine[10000];
I can easily put it into Lite C as:
STRING* is_sNpcLine[10000];
But I have a sneaking feeling that the old code was intending to allocate a string of 10000 characters, not an array of 10000 pointers. If that was the case, then I should do this:
STRING* is_sNpcLine(#10000);
Does anyone remember the old C-script syntax well enough to say what the code represented?
Thanks for your help!!
I have a piece of old code (C-Script) with the following command:
string is_sNpcLine[10000];
I can easily put it into Lite C as:
STRING* is_sNpcLine[10000];
But I have a sneaking feeling that the old code was intending to allocate a string of 10000 characters, not an array of 10000 pointers. If that was the case, then I should do this:
STRING* is_sNpcLine(#10000);
Does anyone remember the old C-script syntax well enough to say what the code represented?
Thanks for your help!!