2 This file is part of libXMLRPC - a C library for xml-encoded function calls.
4 Author: Dan Libby (dan@libby.com)
5 Epinions.com may be contacted at feedback@epinions-inc.com
9 Copyright 2000 Epinions, Inc.
11 Subject to the following 3 conditions, Epinions, Inc. permits you, free
12 of charge, to (a) use, copy, distribute, modify, perform and display this
13 software and associated documentation files (the "Software"), and (b)
14 permit others to whom the Software is furnished to do so as well.
16 1) The above copyright notice and this permission notice shall be included
17 without modification in all copies or substantial portions of the
20 2) THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OR CONDITION OF
21 ANY KIND, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY
22 IMPLIED WARRANTIES OF ACCURACY, MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 PURPOSE OR NONINFRINGEMENT.
25 3) IN NO EVENT SHALL EPINIONS, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
26 SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES OR LOST PROFITS ARISING OUT
27 OF OR IN CONNECTION WITH THE SOFTWARE (HOWEVER ARISING, INCLUDING
28 NEGLIGENCE), EVEN IF EPINIONS, INC. IS AWARE OF THE POSSIBILITY OF SUCH
33 #ifndef __SIMPLESTRING_H__
34 #define __SIMPLESTRING_H__
36 /*-********************************
37 * begin simplestring header stuff *
38 **********************************/
44 /****s* struct/simplestring
48 * represents a string efficiently for fast appending, etc.
51 typedef struct _simplestring {
52 char* str; /* string buf */
53 int len; /* length of string/buf */
54 int size; /* size of allocated buffer */
62 void simplestring_init(simplestring* string);
63 void simplestring_clear(simplestring* string);
64 void simplestring_free(simplestring* string);
65 void simplestring_add(simplestring* string, const char* add);
66 void simplestring_addn(simplestring* string, const char* add, int add_len);
72 /*-******************************
73 * end simplestring header stuff *
74 ********************************/
76 #endif /* __SIMPLESTRING_H__ */