diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 03:11:44 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 03:11:44 +0000 |
commit | b6ea75cfc9712b77a0886c4348d6fb519641e40e (patch) | |
tree | 65f68bb2db7c6118e80670cd5edc297159f43409 /zwgc/buffer.c | |
parent | 71f70d3066d1c038e1794c4ffe804591eda3d1af (diff) |
de K&Rify, fix prototypes
Diffstat (limited to 'zwgc/buffer.c')
-rw-r--r-- | zwgc/buffer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/zwgc/buffer.c b/zwgc/buffer.c index 4b46c22..8c047af 100644 --- a/zwgc/buffer.c +++ b/zwgc/buffer.c @@ -24,12 +24,14 @@ static const char rcsid_buffer_c[] = "$Id$"; static char *buffer = 0; -string buffer_to_string() +string +buffer_to_string(void) { return(buffer); } -void clear_buffer() +void +clear_buffer(void) { if (buffer) free(buffer); @@ -37,8 +39,8 @@ void clear_buffer() buffer = string_Copy(""); } -void append_buffer(str) - char *str; +void +append_buffer(char *str) { buffer = string_Concat2(buffer, str); } |