/**
* BASE64 encoding and decoding
*
* @file platon/str/base64.h
* @author Oliver Hitz <oliver@net-track.ch>
* @author Ondrej Jombik <nepto@platon.sk>
* @version \$Platon: libplaton/platon/str/base64.h,v 1.2 2008-12-26 17:46:26 nepto Exp $
* @date 2003
*/
#ifndef _PLATON_STR_BASE64_H
#define _PLATON_STR_BASE64_H
#ifndef PLATON_FUNC
# define PLATON_FUNC(_name) _name
#endif
#ifndef PLATON_FUNC_STR
# define PLATON_FUNC_STR(_name) #_name
#endif
#ifdef __cplusplus
extern "C" {
#endif
int base64_encode_len(char *in);
int base64_decode_len(char *in);
void base64_encode(char *in, char *out);
void base64_decode(char *in, char *out);
char *base64_encode_alloc(char *in);
char *base64_decode_alloc(char *in);
#ifdef __cplusplus
}
#endif
#endif /* #ifndef _PLATON_STR_BASE64_H */
Platon Group <platon@platon.org> http://platon.org/
|