Home | History | Annotate | Download | only in examples

Lines Matching full:fname

45 #define GET_MIME_TYPE(fname, mime)	do {\
46 unsigned int __len = strlen(fname);\
47 if (__len < 4 || '.' != (fname)[__len - 4]) \
50 printf("MIME for %s is applic...\n", (fname));\
53 const char * __ext = &(fname)[__len - 3];\
62 printf("MIME for %s is applic...\n", (fname));\
165 char *fname;
176 asprintf(&fname,"%s%s",basedir,path);
177 if(0 == access(fname, R_OK))
179 if(NULL == (fd = fopen(fname,"r"))
184 printf("Error on opening %s\n%p %i %zd\n",fname, fd, ret, filesize);
242 free(fname);
245 free(fname);