Mercurial > hg > xemacs-beta
diff lib-src/mmencode.c @ 70:131b0175ea99 r20-0b30
Import from CVS: tag r20-0b30
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:02:59 +0200 |
parents | 9ee227acff29 |
children | 54cc21c15cbb |
line wrap: on
line diff
--- a/lib-src/mmencode.c Mon Aug 13 09:00:04 2007 +0200 +++ b/lib-src/mmencode.c Mon Aug 13 09:02:59 2007 +0200 @@ -22,6 +22,7 @@ static void output64chunk(int c1, int c2, int c3, int pads, FILE *outfile); +extern char *index(); static char basis_64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; @@ -42,7 +43,7 @@ char64(c) char c; { - char *s = (char *) strchr(basis_64, c); + char *s = (char *) index(basis_64, c); if (s) return(s-basis_64); return(-1); } @@ -266,7 +267,7 @@ { char *s; if (islower(c)) c = toupper(c); - s = (char *) strchr(basis_hex, c); + s = (char *) index(basis_hex, c); if (s) return(s-basis_hex); return(-1); }