aboutsummaryrefslogtreecommitdiff
path: root/tail.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tail.c (renamed from core/tail.c)12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/tail.c b/tail.c
index 0e69c1c..99a6eb0 100644
--- a/core/tail.c
+++ b/tail.c
@@ -9,13 +9,17 @@
#include <string.h>
#include <stdlib.h>
-#define REQ_PRINT_USAGE /* Require print_usage() from ../common/common.h */
-#define REQ_ERRPRINT /* Require errprint() from ../common/common.h */
+#define REQ_PRINT_USAGE /* Require print_usage() from common.h */
+#define REQ_ERRPRINT /* Require errprint() from common.h */
#define DESCRIPTION "Copy the last part of files."
#define OPERANDS "[-n number] [file] ..."
-#include "../common/common.h"
+#include "common.h"
-int main(int argc, char *const argv[]) {
+#ifdef FASESBOX
+int tail_main(int argc, char *argv[]) {
+#else
+int main(int argc, char *argv[]) {
+#endif
int argument, i = 1, lines = 10, file_lines = 0;
FILE *file = NULL;