string.h

00001 /*
00002  * string.h
00003  */
00017 /*---------------------------------------------------------------
00018  * HISTORY
00019  * 7-Dec-2004       Graeme McKerrell    
00020  *    Updated to use the "lub" prefix
00021  * 6-Feb-2004       Graeme McKerrell    
00022  *    removed init_fn type definition and parameter, the client had
00023  *    more flexiblity in defining their own initialisation operation with
00024  *    arguments rather than use a "one-size-fits-all" approach.
00025  *    Modified blockpool structure to support FIFO block allocation.
00026  * 23-Jan-2004      Graeme McKerrell    
00027  *    Initial version
00028  *---------------------------------------------------------------
00029  * Copyright (C) 2004 3Com Corporation. All Rights Reserved.
00030  *--------------------------------------------------------------- */
00031 #ifndef _lub_string_h
00032 #define _lub_string_h
00033 
00034 #include <stddef.h>
00035 
00036 #include "lub/c_decl.h"
00037 _BEGIN_C_DECL
00038 
00052 char *
00053     lub_string_dup(
00057         const char *string
00058     );
00075 void
00076     lub_string_cat(
00080         char      **string_ptr,
00084         const char *text
00085     );
00106 void
00107     lub_string_catn(
00111         char      **string_ptr,
00115         const char *text,
00119         size_t      length
00120     );
00135 char *
00136     lub_string_dupn(
00140         const char *string,
00144         unsigned length
00145     );
00159 const char *
00160     lub_string_suffix(
00164         const char *string
00165     );
00166 
00181 int
00182     lub_string_nocasecmp(
00186         const char *cs,
00190         const char *ct
00191     );
00206 const char *
00207     lub_string_nocasestr(
00211         const char *cs,
00215         const char *ct
00216     );
00217         
00231 void
00232     lub_string_free(
00236         char *string
00237     );
00238 
00239  _END_C_DECL
00240 
00241 #endif /* _lub_string_h */
00242 

Generated on Tue Apr 29 13:41:07 2008 for CLISH by  doxygen 1.5.1