Changeset 1770 in MondoRescue for branches/stable/mindi-busybox/libbb/chomp.c
- Timestamp:
- Nov 6, 2007, 11:01:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi-busybox/libbb/chomp.c
r821 r1770 9 9 */ 10 10 11 #include <stdio.h>12 #include <string.h>13 11 #include "libbb.h" 14 15 12 16 13 void chomp(char *s) … … 18 15 char *lc = last_char_is(s, '\n'); 19 16 20 if (lc)21 *lc = 0;17 if (lc) 18 *lc = '\0'; 22 19 }
Note:
See TracChangeset
for help on using the changeset viewer.