]>
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 /* Function defined here for speed.. */
17 static long numerictolong(const char *numeric
, int numericlen
)
22 for (i
=0;i
<numericlen
;i
++) {
23 mynumeric
=(mynumeric
<< 6)+numerictab
[(int) *(numeric
++)];
29 /* long numerictolong(const char *numeric, int numericlen); */
30 char *longtonumeric(long param
, int len
);
31 char *longtonumeric2(long param
, int len
, char *mynum
);