From cf32fe6cf81040e04036f0fcf72f814ab891bb8a Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Thu, 5 Oct 2023 17:18:56 -0600 Subject: demo: implement perf command --- demo/util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'demo/util.c') diff --git a/demo/util.c b/demo/util.c index d08ec20..d728fac 100644 --- a/demo/util.c +++ b/demo/util.c @@ -7,11 +7,6 @@ static void bad_input(void) print("bad input"); } -static void unexpected_eof(void) -{ - print("unexpected end-of-input"); -} - static int parse_cpu_token(const char *token, unsigned *cpu) { if (token[0] != 'c' || token[1] != 'p' || token[2] != 'u' @@ -24,6 +19,11 @@ static int parse_cpu_token(const char *token, unsigned *cpu) return 0; } +void unexpected_eof(void) +{ + print("unexpected end-of-input"); +} + int strcmp(const char *s1, const char *s2) { while (*s1 && *s1 == *s2) -- cgit v1.2.3