Lines Matching refs:bufp
305 char* bufp;
316 if (len < MAX_PATH) bufp = buf;
317 else bufp = malloc (len + 1);
318 strcpy (bufp, drive);
319 strcat (bufp, path);
320 if (access_file (bufp, pathbuf, len_pathbuf, pathret)) {
321 if (bufp != buf) free (bufp);
329 if (len < MAX_PATH) bufp = buf;
330 else bufp = malloc (len + 1);
331 strcpy (bufp, drive);
332 strcat (bufp, path);
333 if (access_file (bufp, pathbuf, len_pathbuf, pathret)) {
334 if (bufp != buf) free (bufp);
347 if (len < MAX_PATH) bufp = buf;
348 else bufp = malloc (len + 1);
349 *bufp = 'A' + i;
350 *(bufp + 1) = ':';
351 *(bufp + 2) = '\0';
352 strcat (bufp, path);
353 if (access_file (bufp, pathbuf, len_pathbuf, pathret)) {
354 if (bufp != buf) free (bufp);
366 char* bufp;
370 if (AccessFile (path, buf, MAX_PATH, &bufp))
371 ret = fopen (bufp, mode);
375 if (bufp != buf) free (bufp);