Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/coreutils/split.c

    r2725 r3232  
    1010 * http://www.opengroup.org/onlinepubs/009695399/utilities/split.html
    1111 */
     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
    1224#include "libbb.h"
    1325
     
    3345    char *curr;
    3446
    35     do {
     47    while (1) {
    3648        curr = old + end - i;
    3749        if (*curr < 'z') {
     
    4456        }
    4557        *curr = 'a';
    46     } while (1);
     58    }
    4759
    4860    return old;
Note: See TracChangeset for help on using the changeset viewer.