]>
jfr.im git - irc/quakenet/newserv.git/blob - lib/base64.h
3 * Definitions of the base64 functions
9 extern int numerictab
[];
12 #define numerictolong(x,y) (donumtolong(x,y,0))
13 #define donumtolong(x,y,z) ((y)==0?(z):(donumtolong((x)+1,(y)-1,((z)<<6)+numerictab[(int)*(x)])))
16 static inline long numerictolong(const char *numeric
, int numericlen
)
21 for (i
=0;i
<numericlen
;i
++) {
22 mynumeric
=(mynumeric
<< 6)+numerictab
[(int) *(numeric
++)];
28 char *longtonumeric(long param
, int len
);
29 char *longtonumeric2(long param
, int len
, char *mynum
);