Lines Matching refs:buf
465 char *buf;
477 buf = strdup(s);
478 if (buf == NULL)
480 strcpy(buf, s); /* Make a private copy of 's' */
481 sl = strlen(buf);
484 buf[sl-1] = '\0'; /* Lose the 'dot' */
485 return (buf);
488 p = nis_dir_cmp(buf, d);
492 free(buf);
497 buf[(sl - dl) - 1] = '\0';
500 if (buf[0] == '\0') {
501 free((void *)buf);
505 return (buf);
516 char *buf, *res;
519 buf = (char *)am(myself, MAXPATHLEN + NIS_MAXNAMELEN + 1);
520 if (buf == 0)
524 (void) memcpy(buf, ROOTDIRFILE, slen(ROOTDIRFILE));
525 return (buf);
528 res = internal_table_name(name, buf);
529 if (res != buf) {
530 sfree(buf);
531 buf = 0;
534 return (buf);