|
|
00001 /* 00002 * Copyright (c) 1989 by the Massachusetts Institute of Technology. 00003 * For copying and distribution information, see the file 00004 * "mit-copyright.h". 00005 * 00006 * Modified for jwgc by Daniel Henninger. 00007 */ 00008 00009 #include "mit-copyright.h" 00010 00011 #include "buffer.h" 00012 00013 static char *buffer = 0; 00014 00015 string 00016 buffer_to_string() 00017 { 00018 return (buffer); 00019 } 00020 00021 void 00022 clear_buffer() 00023 { 00024 if (buffer) 00025 free(buffer); 00026 00027 buffer = string_Copy(""); 00028 } 00029 00030 void 00031 append_buffer(str) 00032 char *str; 00033 { 00034 buffer = string_Concat2(buffer, str); 00035 }
Last updated at Tue Dec 18 21:07:42 PST 2007. | This site and project hosted by... |