Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, April 19, 2024

File: [Platon] / libplaton / platon / str / base64.h (download)

Revision 1.3, Fri Dec 26 17:49:03 2008 UTC (15 years, 3 months ago) by nepto


Changes since 1.2: +3 -2 lines

Author added

/**
 * 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/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top