Lines Matching defs:line
89 static char *get_nextcolon(char *line, int cnt)
92 if (!(line = strchr(line, ':'))) error_exit("Invalid Entry\n");
93 line++; //jump past the colon
95 return line;
111 *sfx = NULL, *line = NULL;
153 while ((n = getline(&line, &allocated_length, exfp)) > 0) {
154 line[n-1] = 0;
155 if (strncmp(line, namesfx, strlen(namesfx)))
156 fprintf(newfp, "%s\n", line);
163 current_ptr = get_nextcolon(line, 2); //past passwd
173 current_ptr = get_nextcolon(line, 3); //past gid/admin list
175 fprintf(newfp, "%s", line);
180 free(line);