+/* vi: set sw=4 ts=4: */
/*
* Copyright (c) 2002 by David I. Bell
* Permission is granted to use, distribute, or modify this source,
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
-#include <memory.h>
#include <time.h>
#include <ctype.h>
#include <sys/param.h>
-#include <malloc.h>
#include "busybox.h"
#define USERSIZE 1024 /* max line length typed in by user */
bb_error_msg("No file name specified");
break;
}
-
+
writeLines(cp, num1, num2);
break;
printLines(curNum, curNum, FALSE);
break;
-
+
case '-':
if (setCurNum(curNum - 1))
printLines(curNum, curNum, FALSE);
/*
* Parse a line number argument if it is present. This is a sum
* or difference of numbers, '.', '$', 'x, or a search string.
- * Returns TRUE if successful (whether or not there was a number).
+ * Returns TRUE if successful (whether or not there was a number).
* Returns FALSE if there was a parsing error, with a message output.
* Whether there was a number is returned indirectly, as is the number.
* The character pointer which stopped the scan is also returned.
newLp = (LINE *) malloc(sizeof(LINE) + len - 1);
- if (newLp == NULL)
+ if (newLp == NULL)
{
bb_error_msg("Failed to allocate memory for line");