2 * Written by J.T. Conklin <jtc@NetBSD.org>.
7 #if defined(LIBC_SCCS) && !defined(lint)
8 __RCSID("$NetBSD: l64a.c,v 1.13 2003/07/26 19:24:54 salo Exp $");
12 #include <sys/cdefs.h>
13 __FBSDID("$FreeBSD$");
23 (void)l64a_r(value, buf, sizeof(buf));
28 l64a_r(long value, char *buffer, int buflen)
30 static const char chars[] =
31 "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
35 while (buflen-- > 0) {
40 *buffer++ = chars[v & 0x3f];