some parameters of a function are defined to be null terminated strings
and some just string. what's the difference ?
Jens
"brian" <brian_...@yahoo.com> schrieb im Newsbeitrag
news:a74ee6e1.01071...@posting.google.com...
A NUL terminated string has an ASCII or Unicode NUL character after the
last character of text. A NUL is a char (ASCII) equal to '\0' or an int
(Unicode) equal to 0.
An string that is not specified to be NUL terminated does not need to
have a NUL character at the end of it; some other mechanism will be used
to determine the length of the string.
The only case I can think of off hand where Windows uses a string that
does NOT need to be NUL terminated is the TextOut() function. In other
cases you should assume that a NUL terminator is required.
Norm
I should have said short int above.