char *dir, *p = buf;
char *p = buf;
xlocaledir(    char *buf,    int buf_len){    char *dir, *p = buf;    int len = 0;    dir = getenv("XLOCALEDIR");    if (dir != NULL) {	len = strlen(dir);	strncpy(p, dir, buf_len);	if (len < buf_len) {	    p[len++] = LC_PATHDELIM;	    p += len;	}    }    if (len < buf_len)#ifndef __EMX__      strncpy(p, XLOCALEDIR, buf_len - len);#else      strncpy(p,__XOS2RedirRoot(XLOCALEDIR), buf_len - len);#endif    buf[buf_len-1] = '\0';}