aboutsummaryrefslogtreecommitdiff
path: root/head.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--head.c (renamed from core/head.c)12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/head.c b/head.c
index 733131d..83edfe8 100644
--- a/core/head.c
+++ b/head.c
@@ -10,13 +10,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 file to standard output until <number> lines."
#define OPERANDS "[-n number] [file] ..."
-#include "../common/common.h"
+#include "common.h"
-int main(int argc, char *const argv[]) {
+#ifdef FASESBOX
+int head_main(int argc, char *argv[]) {
+#else
+int main(int argc, char *argv[]) {
+#endif
int argument, i, lines = 10, lines_printed;
FILE *file;
char s[4096], *argv0 = strdup(argv[0]);