Changeset 167 for trunk/include/sh_utils.h
- Timestamp:
- Mar 15, 2008, 12:38:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/sh_utils.h
r149 r167 190 190 char * sh_util_basename(const char * fullpath); 191 191 192 /* required size (including terminating NULL) for string of strlen l 193 */ 194 #define SH_B64_SIZ(l) (1 + ((((l) + 2) / 3) * 4)) 195 196 /* return len of encoded string 197 */ 198 size_t sh_util_base64_enc (unsigned char * out, const unsigned char * instr, 199 size_t lin); 200 201 /* return allocated encoded string in out, return its len 202 */ 203 size_t sh_util_base64_enc_alloc (char **out, const char *in, size_t inlen); 204 205 /* return len of decoded string 206 */ 207 size_t sh_util_base64_dec (unsigned char *out, const unsigned char *in, size_t lin); 208 209 /* return allocated decoded string in out, return its len 210 */ 211 size_t sh_util_base64_dec_alloc (unsigned char **out, const unsigned char *in, size_t lin); 212 192 213 #endif
Note:
See TracChangeset
for help on using the changeset viewer.