comparison lib-src/mmencode.c @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents cc15677e0335
children de805c49cfc1
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
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>
21 22
22 static void 23 static void
23 output64chunk(int c1, int c2, int c3, int pads, FILE *outfile); 24 output64chunk(int c1, int c2, int c3, int pads, FILE *outfile);
24 25
25 static signed char basis_64[] = 26 static signed char basis_64[] =
50 51
51 /* the following gets a character, but fakes it properly into two chars if there's a newline character */ 52 /* the following gets a character, but fakes it properly into two chars if there's a newline character */
52 static int InNewline=0; 53 static int InNewline=0;
53 54
54 static int 55 static int
55 nextcharin(infile, PortableNewlines) 56 nextcharin (FILE *infile, int PortableNewlines)
56 FILE *infile;
57 int PortableNewlines;
58 { 57 {
59 int c; 58 int c;
60 59
61 #ifndef NEWLINE_CHAR 60 #ifndef NEWLINE_CHAR
62 return(getc(infile)); 61 return(getc(infile));