The functions that Windows, Unix and probably OS/2 use generate null-terminated byte strings which should be comparable using strcmp(). Hopefully the Mac libraries also generate strcmp()able strings so that the code can be cleaned up.
Damn, looks like this won't work on OS/2. Sorry for the inconvenience.
Mark as verified as won't fix.