Changeset a202ff1 in code
- Timestamp:
- Mar 3, 2014, 1:13:50 AM (11 years ago)
- Branches:
- master
- Children:
- fa271b8
- Parents:
- e2fcbc7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
icb.c
re2fcbc7 ra202ff1 562 562 /* 563 563 * icb_nextfield: advances through a given buffer returning pointer to the 564 * beginning of the icb field or an empty string otherwise 564 * beginning of the icb field or an empty string otherwise; 565 * cleans up trailing spaces 565 566 */ 566 567 char * … … 568 569 { 569 570 char *start = *buf; 571 char *end = NULL; 570 572 571 573 while (*buf && **buf != '\0' && **buf != ICB_M_SEP) … … 573 575 if (*buf && **buf == ICB_M_SEP) { 574 576 **buf = '\0'; 577 end = *buf; 575 578 (*buf)++; 576 } 579 } else 580 end = *buf; 581 while (end && *(--end) == ' ' && end > start) 582 *end = '\0'; 577 583 return (start); 578 584 }
Note:
See TracChangeset
for help on using the changeset viewer.