CLISH  0.7.3
string.h
1 /*
2  * string.h
3  */
17 /*---------------------------------------------------------------
18  * HISTORY
19  * 7-Dec-2004 Graeme McKerrell
20  * Updated to use the "lub" prefix
21  * 6-Feb-2004 Graeme McKerrell
22  * removed init_fn type definition and parameter, the client had
23  * more flexiblity in defining their own initialisation operation with
24  * arguments rather than use a "one-size-fits-all" approach.
25  * Modified blockpool structure to support FIFO block allocation.
26  * 23-Jan-2004 Graeme McKerrell
27  * Initial version
28  *---------------------------------------------------------------
29  * Copyright (C) 2004 3Com Corporation. All Rights Reserved.
30  *--------------------------------------------------------------- */
31 #ifndef _lub_string_h
32 #define _lub_string_h
33 
34 #include <stddef.h>
35 
36 #include "lub/c_decl.h"
37 _BEGIN_C_DECL
38 
52 char *
57  const char *string
58  );
75 void
80  char **string_ptr,
84  const char *text
85  );
106 void
111  char **string_ptr,
115  const char *text,
119  size_t length
120  );
135 char *
140  const char *string,
144  unsigned length
145  );
159 const char *
164  const char *string
165  );
166 
181 int
186  const char *cs,
190  const char *ct
191  );
206 const char *
211  const char *cs,
215  const char *ct
216  );
217 
231 void
236  char *string
237  );
238 
239  _END_C_DECL
240 
241 #endif /* _lub_string_h */
242 
const char * lub_string_suffix(const char *string)
_BEGIN_C_DECL char * lub_string_dup(const char *string)
void lub_string_cat(char **string_ptr, const char *text)
const char * lub_string_nocasestr(const char *cs, const char *ct)
void lub_string_catn(char **string_ptr, const char *text, size_t length)
void lub_string_free(char *string)
int lub_string_nocasecmp(const char *cs, const char *ct)
char * lub_string_dupn(const char *string, unsigned length)