Mercurial > pidgin.yaz
comparison src/util.h @ 5426:8d8bf0d31a23
[gaim-migrate @ 5805]
i'm cleaning out my tree
1. new tobase64 function that works better
2. new date/time stamp parsing stuff for jabber
3. other misc stuff, not deserving of specific mention
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 18 May 2003 05:45:18 +0000 |
parents | 381da05cb5ed |
children | e1cc0c67e123 |
comparison
equal
deleted
inserted
replaced
5425:73bde657e212 | 5426:8d8bf0d31a23 |
---|---|
41 char *normalize(const char *str); | 41 char *normalize(const char *str); |
42 | 42 |
43 /** | 43 /** |
44 * Converts a string to its base-64 equivalent. | 44 * Converts a string to its base-64 equivalent. |
45 * | 45 * |
46 * @param str The string to convert. | 46 * @param buf The data to convert. |
47 * @param len The length of the data, or -1 if it's a NULL-terminated string. | |
47 * | 48 * |
48 * @return The base-64 version of @a str. | 49 * @return The base-64 version of @a str. |
49 * | 50 * |
50 * @see frombase64() | 51 * @see frombase64() |
51 */ | 52 */ |
52 char *tobase64(const char *str); | 53 char *tobase64(const unsigned char *buf, size_t len); |
53 | 54 |
54 /** | 55 /** |
55 * Converts a string back from its base-64 equivalent. | 56 * Converts a string back from its base-64 equivalent. |
56 * | 57 * |
57 * @param str The string to convert back. | 58 * @param str The string to convert back. |