| string.h | | string.h | |
| | | | |
| skipping to change at line 19 | | skipping to change at line 19 | |
| #else | | #else | |
| # include <stdio.h> | | # include <stdio.h> | |
| # include <stdlib.h> | | # include <stdlib.h> | |
| # include <string.h> | | # include <string.h> | |
| #endif | | #endif | |
| | | | |
| #ifdef __cplusplus | | #ifdef __cplusplus | |
| extern "C" { | | extern "C" { | |
| #endif | | #endif | |
| | | | |
|
| | | enum { | |
| | | HXQUOTE_SQUOTE = 1, | |
| | | HXQUOTE_DQUOTE, | |
| | | HXQUOTE_HTML, | |
| | | _HXQUOTE_MAX, | |
| | | }; | |
| | | | |
| #ifndef __libhx_internal_hxmc_t_defined | | #ifndef __libhx_internal_hxmc_t_defined | |
| #define __libhx_internal_hxmc_t_defined 1 | | #define __libhx_internal_hxmc_t_defined 1 | |
| typedef char hxmc_t; | | typedef char hxmc_t; | |
| #endif | | #endif | |
| | | | |
| /* | | /* | |
| * HMC.C | | * HMC.C | |
| */ | | */ | |
| extern hxmc_t *HXmc_strinit(const char *); | | extern hxmc_t *HXmc_strinit(const char *); | |
| extern hxmc_t *HXmc_meminit(const void *, size_t); | | extern hxmc_t *HXmc_meminit(const void *, size_t); | |
| | | | |
| skipping to change at line 59 | | skipping to change at line 66 | |
| extern char *HX_dirname(const char *); | | extern char *HX_dirname(const char *); | |
| extern hxmc_t *HX_getl(hxmc_t **, FILE *); | | extern hxmc_t *HX_getl(hxmc_t **, FILE *); | |
| extern char **HX_split(const char *, const char *, int *, int); | | extern char **HX_split(const char *, const char *, int *, int); | |
| extern char **HX_split4(char *, const char *, int *, int); | | extern char **HX_split4(char *, const char *, int *, int); | |
| extern int HX_split5(char *, const char *, int, char **); | | extern int HX_split5(char *, const char *, int, char **); | |
| extern char *HX_strbchr(const char *, const char *, char); | | extern char *HX_strbchr(const char *, const char *, char); | |
| extern char *HX_strclone(char **, const char *); | | extern char *HX_strclone(char **, const char *); | |
| extern char *HX_strlower(char *); | | extern char *HX_strlower(char *); | |
| extern size_t HX_strltrim(char *); | | extern size_t HX_strltrim(char *); | |
| extern char *HX_strmid(const char *, long, long); | | extern char *HX_strmid(const char *, long, long); | |
|
| | | extern char *HX_strquote(const char *, unsigned int, char **); | |
| extern size_t HX_strrcspn(const char *, const char *); | | extern size_t HX_strrcspn(const char *, const char *); | |
| extern char *HX_strrev(char *); | | extern char *HX_strrev(char *); | |
| extern size_t HX_strrtrim(char *); | | extern size_t HX_strrtrim(char *); | |
| extern char *HX_strsep(char **, const char *); | | extern char *HX_strsep(char **, const char *); | |
| extern char *HX_strsep2(char **, const char *); | | extern char *HX_strsep2(char **, const char *); | |
| extern char *HX_strupper(char *); | | extern char *HX_strupper(char *); | |
| | | | |
| static inline char *HX_strlcat(char *dest, const char *src, size_t len) | | static inline char *HX_strlcat(char *dest, const char *src, size_t len) | |
| { | | { | |
| ssize_t x = len - strlen(dest) - 1; | | ssize_t x = len - strlen(dest) - 1; | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 8 lines changed or added | |
|