Lines Matching refs:bufinp
120 char *bufinp, *bufworkp; /* pointers to input and work areas */ local
231 if ((bufinp = malloc(2 * LINESZ)) == NULL) {
236 bufworkp = bufinp + LINESZ;
248 free(bufinp);
258 if (!fgets(bufinp, LINESZ, fp_inp)) {
262 free(bufinp);
269 if(*(bufinp+strlen(bufinp)-1) != '\n') {
271 free(bufinp);
274 *(bufinp + strlen(bufinp) -1) = (char)0; /* delete newline */
276 (void)strccpy(bufworkp, bufinp);
284 free(bufinp);
308 bufinp = (char *)bufoutp;
309 …if ( (fread(bufinp + sizeof(int) + num_msgs * sizeof(int), sizeof(*bufinp), buf.st_size, fp_outp))…
310 free(bufinp);
316 msgp = bufinp + sizeof(int) + num_msgs * sizeof(int);
318 *(bufoutp + 1) = (bufinp + sizeof(int) + num_msgs * sizeof(int)) - bufinp;
321 *(bufoutp + i) = (msgp + strlen(msgp) + 1) - bufinp;
328 free(bufinp);
340 free(bufinp);
346 if (fwrite((char *)bufinp, sizeof(*bufinp), size, fp_outp) != size) {
349 free(bufinp);
354 free(bufinp);