NthArgument in v17?

May 20, 2008
9,204
60
Syracuse, NY, USA
How do I get a pointer to the Nth argument without NUL terminating it? I want a pointer to the tail of a string starting at the Nth argument. With v16, this was sufficient; it doesn't wotk in v17.
Code:
WCHAR *pTail = NthArgument(szString, N, NULL, NULL);[CODE]
 

rconn

Administrator
Staff member
May 14, 2008
10,934
97
NthArgument (obsolete & deprecated in v17) never inserts any NULs into the line. (That is done by a different function in the parser.)

There isn't any way in v17 to use NthArgument to return an offset, without specifying the third (buffer or NULL) and fourth (pointer offset) argument.