Lines Matching refs:line
92 "Invalid command line flag: %s\n"), argv[i]);
111 char line[BUFSIZ];
115 fgets(line, BUFSIZ, stdin);
116 if (line[0] == 'y' || line[0] == 'Y')
123 if (fgets(line, BUFSIZ, stdin) == NULL) {
127 if (line[0] == '-' && line[1] == '\n') {
134 } else if (line[strlen(line)-2] == '\\') {
135 if (line[0] != '\\') {
136 line[strlen(line)-2] = '\n';
137 line[strlen(line)-1] = NULL;
138 trim(line);
140 bibskel[i].keylet, line);
144 fgets(line, BUFSIZ, stdin);
145 if (line[strlen(line)-2] == '\\') {
146 line[strlen(line)-2] = '\n';
147 line[strlen(line)-1] = NULL;
148 trim(line);
149 fputs(line, fp);
153 trim(line);
154 fputs(line, fp);
155 } else if (line[0] != '\n') {
156 trim(line);
157 fprintf(fp, "%s %s", bibskel[i].keylet, line);
163 while (fgets(line, BUFSIZ, stdin)) {
164 if (firstln && line[0] != '%') {
168 fputs(line, fp);
179 fgets(line, BUFSIZ, stdin);
180 if (line[0] == 'e' || line[0] == 'v') {
181 bibedit(fp, line, argv);
184 if (line[0] == 'q' || line[0] == 'n')
190 trim(char line[]) /* trim line of trailing white space */
194 n = strlen(line);
196 if (!isspace(line[n]))
199 line[++n] = '\n';
200 line[++n] = NULL;