Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __STRINGS_H_
00024 #define __STRINGS_H_
00025
00026 #ifdef HAVE_CONFIG_H
00027 #include <config.h>
00028 #endif
00029
00030 #include <stdlib.h>
00031 #include <string.h>
00032
00036 #ifndef _STRINGS_C_
00037 #define M_EXTERN extern
00038 #else
00039 #define M_EXTERN
00040 #endif
00041
00047 M_EXTERN int is_empty_str(const char *str);
00048
00054 M_EXTERN char *clone_str(const char *str);
00055
00061 M_EXTERN char *toupper_str(const char *str);
00062
00068 M_EXTERN char *tolower_str(const char *str);
00069
00076 M_EXTERN char *bin2hex(const unsigned char *binstr,const int len);
00077
00083 M_EXTERN unsigned char *hex2bin(const char *hexstr);
00084
00093 M_EXTERN unsigned char *hex2bin_static(const char *hexstr,unsigned char **res,int *size);
00094
00104 M_EXTERN char **split(const char *str,char sep, int nelems);
00105
00117 M_EXTERN char **split_static(const char *str,char sep, int nelems,char *dst);
00118
00126 M_EXTERN char *trim(const char *str);
00127
00128 #undef M_EXTERN
00129
00130 #endif