… | |
… | |
3 | * Copyright © 2005-2006 Atheme Development Group |
3 | * Copyright © 2005-2006 Atheme Development Group |
4 | * Rights to this code are as documented in doc/pod/license.pod. |
4 | * Rights to this code are as documented in doc/pod/license.pod. |
5 | * |
5 | * |
6 | * Misc tools |
6 | * Misc tools |
7 | * |
7 | * |
8 | * $Id: tools.h,v 1.2 2007/07/21 01:29:07 pippijn Exp $ |
8 | * $Id: tools.h,v 1.3 2007/07/25 00:03:21 pippijn Exp $ |
9 | */ |
9 | */ |
10 | |
10 | |
11 | #ifndef _TOOLS_H |
11 | #ifndef _TOOLS_H |
12 | #define _TOOLS_H |
12 | #define _TOOLS_H |
13 | |
13 | |
… | |
… | |
234 | } \ |
234 | } \ |
235 | } while (0) |
235 | } while (0) |
236 | #endif |
236 | #endif |
237 | |
237 | |
238 | /* tokenize.c */ |
238 | /* tokenize.c */ |
239 | E int sjtoken (char *message, char delimiter, char **parv); |
239 | E int sjtoken (char *message, char delimiter, char **parv, int limit = 256); |
240 | E int tokenize (char *message, char **parv); |
240 | E int tokenize (char *message, char **parv); |
241 | |
241 | |
242 | /* ubase64.c */ |
242 | /* ubase64.c */ |
243 | E const char *uinttobase64 (char *buf, uint64_t v, int64_t count); |
243 | E const char *uinttobase64 (char *buf, uint64_t v, int64_t count); |
244 | E unsigned int base64touint (char *buf); |
244 | E unsigned int base64touint (char *buf); |