aboutsummaryrefslogtreecommitdiff
path: root/wc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--wc.c (renamed from core/wc.c)12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/wc.c b/wc.c
index d975231..24c51f8 100644
--- a/core/wc.c
+++ b/wc.c
@@ -9,13 +9,17 @@
#include <errno.h>
#include <string.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 "Word, line, and byte/character count."
#define OPERANDS "[-clwm] [file...]"
-#include "../common/common.h"
+#include "common.h"
-int main(int argc, char *const argv[]) {
+#ifdef FASESBOX
+int wc_main(int argc, char *argv[]) {
+#else
+int main(int argc, char *argv[]) {
+#endif
int argument, length;
FILE *file;
size_t len_getd = 4096;