Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/coreutils/split.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/coreutils/split.c
r2725 r3232 10 10 * http://www.opengroup.org/onlinepubs/009695399/utilities/split.html 11 11 */ 12 13 //usage:#define split_trivial_usage 14 //usage: "[OPTIONS] [INPUT [PREFIX]]" 15 //usage:#define split_full_usage "\n\n" 16 //usage: " -b N[k|m] Split by N (kilo|mega)bytes" 17 //usage: "\n -l N Split by N lines" 18 //usage: "\n -a N Use N letters as suffix" 19 //usage: 20 //usage:#define split_example_usage 21 //usage: "$ split TODO foo\n" 22 //usage: "$ cat TODO | split -a 2 -l 2 TODO_\n" 23 12 24 #include "libbb.h" 13 25 … … 33 45 char *curr; 34 46 35 do{47 while (1) { 36 48 curr = old + end - i; 37 49 if (*curr < 'z') { … … 44 56 } 45 57 *curr = 'a'; 46 } while (1);58 } 47 59 48 60 return old;
Note:
See TracChangeset
for help on using the changeset viewer.