Crossfire Server, Branch 1.12
R12190
|
00001 /* 00002 CrossFire, A Multiplayer game for X-windows 00003 00004 Copyright (C) 2008 Crossfire Development Team 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 00020 The authors can be reached via e-mail at crossfire-devel@real-time.com 00021 */ 00022 00044 #ifndef STRING_BUFFER_H 00045 #define STRING_BUFFER_H 00046 00047 #include "global.h" 00048 00049 00053 typedef struct StringBuffer StringBuffer; 00054 00055 00061 StringBuffer *stringbuffer_new(void); 00062 00072 char *stringbuffer_finish(StringBuffer *sb); 00073 00085 sstring stringbuffer_finish_shared(StringBuffer *sb); 00086 00094 void stringbuffer_append_string(StringBuffer *sb, const char *str); 00095 00103 void stringbuffer_append_printf(StringBuffer *sb, const char *format, ...); 00104 00113 void stringbuffer_append_stringbuffer(StringBuffer *sb, const StringBuffer *sb2); 00114 00115 #endif