char *p;
char *p, *name2; int err = 0;
does_file_exist (const char *name, int is_file){    struct stat st;    const char *s;    char *p;    if (stat (name, &st) == -1) {	s = "\"%s\" does not exist.";	p = xmalloc (strlen (s) + strlen (name) + 2);	sprintf (p, s, name);	MessageBox (NULL, p, "Config Error", MB_ICONERROR|MB_OK);	free (p);	return -1;    }    if (is_file && !(st.st_mode & _S_IFREG)) {	s = "\"%s\" is not a regular file.";	p = xmalloc (strlen (s) + strlen (name) + 2);	sprintf (p, s, name);	MessageBox (NULL, p, "Config Error", MB_ICONERROR|MB_OK);	free (p);	return -1;    }    return 0;}