Lines Matching refs:buf
82 char buf[1024]; in check_authentication() local
88 while (fgets(buf,1024, ptr_file)){ in check_authentication()
90 for (i = 0; buf[i] != '\0'; i++){ in check_authentication()
91 if (buf[i] == '\n' || buf[i] == '\r'){ in check_authentication()
92 buf[i] = '\0'; in check_authentication()
97 if (strlen(buf) == 0 || strchr(buf, ',') == NULL || buf[0] == '#'){ in check_authentication()
100 s_username = strtok(buf, ","); in check_authentication()
377 char *buf = *lineptr; in iperf_getpass() local
379 for (i = 0; buf[i] != '\0'; i++){ in iperf_getpass()
380 if (buf[i] == '\n' || buf[i] == '\r'){ in iperf_getpass()
381 buf[i] = '\0'; in iperf_getpass()