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