INF:strtok() Doesn't Need Additional Space for Inserting Nulls

ID Number: Q71285

5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

In Microsoft C versions 5.1, 6.0, 6.0a, 6.0ax, and 7.0, it is

sometimes mistakenly assumed that when the C strtok() function inserts

a null character (\0) into the source string at the end of a token,

the length of the source string increases by this new character. This

is not the case because an additional character is not actually being

inserted. Instead, the delimiter that strtok() found to indicate the

end of the token is replaced by the null character.

Thus, when declaring or allocating the string of tokens, you do not

need to make allowances for the null characters to be inserted.

Additional reference words: 5.10 6.00 6.00a 6.00ax