Enumerate NULL delimited strings that are terminated with a double NULL.


/ Published in: C++
Save to your folder(s)

Some Windows APIs return an array of strings in buffers where each string is NULL delimited and the buffer is double NULL terminated. Using strchr is a convenient way of enumerating. It's easier to read with a 'NextToken' macro/function as shown here.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.