Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / tt / lib / util / tt_base64.h
1 /*%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                   */
2 /*%%  (c) Copyright 1993, 1994 International Business Machines Corp.     */
3 /*%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                    */
4 /*%%  (c) Copyright 1993, 1994 Novell, Inc.                              */
5 /*%%  $XConsortium: tt_base64.h /main/4 1996/07/30 17:41:55 barstow $                                                    */
6 /*
7  *
8  * tt_base64.h
9  *
10  * Simple routines for encoding and decoding unsigned longs as base-64 numbers
11  * Note that encode returns a pointer to internal static storage.
12  *
13  * Copyright (c) 1990 by Sun Microsystems, Inc.
14  */
15
16 #ifndef _TT_BASE64_H
17 #define _TT_BASE64_H
18
19 #include "util/tt_string.h"
20
21 #ifdef __osf__
22 unsigned int _tt_base64_decode(const char *s);
23 _Tt_string _tt_base64_encode(unsigned int n);
24 #else  /* __osf__ */
25 unsigned long _tt_base64_decode(const char *s);
26 _Tt_string _tt_base64_encode(unsigned long n);
27 #endif /* __osf__ */
28
29 #endif /* _TT_BASE64_H */
30