From 8fdcfdb4479dff7a993a25a63253f0e749fd99fe Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 3 Sep 2013 17:56:28 -0500 Subject: Introduce libbuf analogous to toybuf but for use by lib/*.c. Change readfile() semantics to be able to read into an existing buffer, or malloc its own if that's NULL. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index dd985b84..53f670d2 100644 --- a/main.c +++ b/main.c @@ -20,7 +20,7 @@ struct toy_list toy_list[] = { struct toy_context toys; union global_union this; -char toybuf[4096]; +char toybuf[4096], libbuf[4096]; struct toy_list *toy_find(char *name) { -- cgit v1.2.3