#include <getopt.h>
#include <stdlib.h>
#include <string.h>
+#include <ctype.h>
#include "busybox.h"
static int head(int len, FILE *fp)
FILE *fp;
int need_headers, opt, len = 10, status = EXIT_SUCCESS;
- if (( argc >= 2 ) && ( strlen ( argv [1] ) >= 2 ) && ( argv [1][0] == '-' ) && isdigit ( argv [1][1] )) {
+ if (( argc >= 2 ) && ( argv [1][0] == '-' ) && isdigit ( argv [1][1] )) {
len = atoi ( &argv [1][1] );
optind = 2;
}
#include <fcntl.h>
#include <getopt.h>
#include <string.h>
+#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
char *s, *start, *end, buf[BUFSIZ];
int i, opt;
- if (( argc >= 2 ) && ( strlen ( argv [1] ) >= 2 ) && ( argv [1][0] == '-' ) && isdigit ( argv [1][1] )) {
+ if (( argc >= 2 ) && ( argv [1][0] == '-' ) && isdigit ( argv [1][1] )) {
count = atoi ( &argv [1][1] );
optind = 2;
}