diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-10-05 17:18:56 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-10-05 17:18:56 -0600 |
| commit | cf32fe6cf81040e04036f0fcf72f814ab891bb8a (patch) | |
| tree | a1e1c50ab905ce6b7b85dcffc98c09995d72e693 /demo/util.c | |
| parent | d406720cecd7328f595255e65b6fd6b6814cefe4 (diff) | |
demo: implement perf command
Diffstat (limited to '')
| -rw-r--r-- | demo/util.c | 10 |
1 files changed, 5 insertions, 5 deletions
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) |
