29 Mar
2005
29 Mar
'05
2:23 p.m.
"Hans Leidekker" <hans(a)it.vu.nl> wrote:
+BOOL WINAPI DnsHostnameToComputerNameA(LPCSTR hostname, + LPSTR computername, LPDWORD size)
+ for (i = 0; i <= len; i++) + computername[i] = toupper(hostname[i]);
You can't use toupper() from glibc on a name in a Windows encoding. Why not just call a W version to do the job? -- Dmitry.