The slenull() function is identical with "slen()", but it calculates the length of a string terminated in two NULL characters, not just one.
PARAMETERS:
pcString = the input string who's length is desired;
RETURN VALUES:
This function returns the length of the double-NULL terminated input string, without the final NULL characters.
REMARKS:
This function's behaviour is useful when working in Win32 API with strings that define file types and extensions for OPENFILENAME.
EXAMPLE:
slenull("ana\0are\0mere\0\0") returns 12 |