What is the character encoding expected in libc? For example, gethostname(char *name, size_t namelen); takes char* as argument. Is it expected that the name parameter be encoded in utf8(which keeps the ascii intact) or plain ascii or some other format?
Also does C mandates any character encoding scheme?