00001 #ifndef _STRINGBUF_H_ 00002 #define _STRINGBUF_H_ 00003 00010 typedef /*@abstract@*/ struct StringBufRec *StringBuf; 00011 00012 #ifdef __cplusplus 00013 extern "C" { 00014 #endif 00015 00018 /*@only@*/ StringBuf newStringBuf(void); 00019 00022 void freeStringBuf( /*@only@*/ StringBuf sb); 00023 00026 void truncStringBuf(StringBuf sb); 00027 00030 /*@observer@*/ char *getStringBuf(StringBuf sb); 00031 00034 void stripTrailingBlanksStringBuf(StringBuf sb); 00035 00038 #define appendStringBuf(sb, s) appendStringBufAux(sb, s, 0) 00039 00042 #define appendLineStringBuf(sb, s) appendStringBufAux(sb, s, 1) 00043 00046 void appendStringBufAux(StringBuf sb, const char *s, int nl); 00047 00048 #ifdef __cplusplus 00049 } 00050 #endif 00051 00052 #endif /* _STRINGBUF_H_ */
1.2.6-20010408 written by Dimitri van Heesch,
© 1997-2001