1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

NthArgument in v17?

Discussion in 'Support' started by vefatica, Jan 3, 2015.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,883
    Likes Received:
    29
    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]
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,883
    Likes Received:
    29
    Have I got this right? ...

    NthArgument inserts NULs in pszLine if and only if ppNthPtr is NULL.
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,806
    Likes Received:
    82
    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.
     

Share This Page