Deleted Added
full compact
lib.c (172959) lib.c (201951)
1/****************************************************************
2Copyright (C) Lucent Technologies 1997
3All Rights Reserved
4
5Permission to use, copy, modify, and distribute this software and
6its documentation for any purpose and without fee is hereby
7granted, provided that the above copyright notice appear in all
8copies and that both that the copyright notice and this

--- 260 unchanged lines hidden (view full) ---

269 if (n > fieldssize) {
270 xfree(fields);
271 if ((fields = (char *) malloc(n+1)) == NULL)
272 FATAL("out of space for fields in fldbld %d", n);
273 fieldssize = n;
274 }
275 fr = fields;
276 i = 0; /* number of fields accumulated here */
1/****************************************************************
2Copyright (C) Lucent Technologies 1997
3All Rights Reserved
4
5Permission to use, copy, modify, and distribute this software and
6its documentation for any purpose and without fee is hereby
7granted, provided that the above copyright notice appear in all
8copies and that both that the copyright notice and this

--- 260 unchanged lines hidden (view full) ---

269 if (n > fieldssize) {
270 xfree(fields);
271 if ((fields = (char *) malloc(n+1)) == NULL)
272 FATAL("out of space for fields in fldbld %d", n);
273 fieldssize = n;
274 }
275 fr = fields;
276 i = 0; /* number of fields accumulated here */
277 strcpy(inputFS, *FS);
277 if (strlen(inputFS) > 1) { /* it's a regular expression */
278 i = refldbld(r, inputFS);
279 } else if ((sep = *inputFS) == ' ') { /* default whitespace */
280 for (i = 0; ; ) {
281 while (*r == ' ' || *r == '\t' || *r == '\n')
282 r++;
283 if (*r == 0)
284 break;

--- 412 unchanged lines hidden ---
278 if (strlen(inputFS) > 1) { /* it's a regular expression */
279 i = refldbld(r, inputFS);
280 } else if ((sep = *inputFS) == ' ') { /* default whitespace */
281 for (i = 0; ; ) {
282 while (*r == ' ' || *r == '\t' || *r == '\n')
283 r++;
284 if (*r == 0)
285 break;

--- 412 unchanged lines hidden ---