]>
git.saurik.com Git - apple/libc.git/blob - stdlib/a64l.c
2 * Written by J.T. Conklin <jtc@netbsd.org>.
6 #if defined(LIBC_SCCS) && !defined(lint)
7 static char *rcsid
= "$OpenBSD: a64l.c,v 1.3 1997/08/17 22:58:34 millert Exp $";
8 #endif /* LIBC_SCCS and not lint */
17 int value
, digit
, shift
;
27 for (i
= 0; *s
&& i
< 6; i
++, s
++) {
28 if (*s
>= '.' && *s
<= '/')
30 else if (*s
>= '0' && *s
<= '9')
32 else if (*s
>= 'A' && *s
<= 'Z')
33 digit
= *s
- 'A' + 12;
34 else if (*s
>= 'a' && *s
<= 'z')
35 digit
= *s
- 'a' + 38;
41 value
|= digit
<< shift
;