Mercurial > hg > xemacs-beta
comparison lib-src/mmencode.c @ 371:cc15677e0335 r21-2b1
Import from CVS: tag r21-2b1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:03:08 +0200 |
parents | 972bbb6d6ca2 |
children | 74fd4e045ea6 |
comparison
equal
deleted
inserted
replaced
370:bd866891f083 | 371:cc15677e0335 |
---|---|
16 #define NEWLINE_CHAR '\n' | 16 #define NEWLINE_CHAR '\n' |
17 #include <stdlib.h> | 17 #include <stdlib.h> |
18 #include <stdio.h> | 18 #include <stdio.h> |
19 #include <ctype.h> | 19 #include <ctype.h> |
20 #include <string.h> | 20 #include <string.h> |
21 #include <errno.h> | |
22 | 21 |
23 static void | 22 static void |
24 output64chunk(int c1, int c2, int c3, int pads, FILE *outfile); | 23 output64chunk(int c1, int c2, int c3, int pads, FILE *outfile); |
25 | 24 |
26 static signed char basis_64[] = | 25 static signed char basis_64[] = |
51 | 50 |
52 /* the following gets a character, but fakes it properly into two chars if there's a newline character */ | 51 /* the following gets a character, but fakes it properly into two chars if there's a newline character */ |
53 static int InNewline=0; | 52 static int InNewline=0; |
54 | 53 |
55 static int | 54 static int |
56 nextcharin (FILE *infile, int PortableNewlines) | 55 nextcharin(infile, PortableNewlines) |
56 FILE *infile; | |
57 int PortableNewlines; | |
57 { | 58 { |
58 int c; | 59 int c; |
59 | 60 |
60 #ifndef NEWLINE_CHAR | 61 #ifndef NEWLINE_CHAR |
61 return(getc(infile)); | 62 return(getc(infile)); |