+Thu Jun 3 11:35:18 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+ * base64.c: mapped fi and fo to stdin and stdout using
+ actual code rather than assignment at declaration time
+ (several users of Red Hat Linux 6.0 reported problems)
+
Fri May 21 20:05:00 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Added function CtdlGetDynamicSymbol() for dynamic symbol allocation
* server.h: Changed discrete #define's to enum's where appropriate
This program is in the public domain.
+Revision date: 11th August 1997
+
+Modified slightly for the Citadel/UX system, June 1999
+http://uncnsrd.mt-kisco.ny.us/citadel
+
*/
-#define REVDATE "11th August 1997"
#include <stdio.h>
#include <stdlib.h>
typedef unsigned char byte; /* Byte type */
-static FILE *fi = stdin; /* Input file */
-static FILE *fo = stdout; /* Output file */
+FILE *fi; /* Input file */
+FILE *fo; /* Output file */
static byte iobuf[256]; /* I/O buffer */
static int iolen = 0; /* Bytes left in I/O buffer */
static int iocp = 256; /* Character removal pointer */
int i, f = 0, decoding = FALSE;
char *cp, opt;
+ fi = stdin;
+ fo = stdout;
+
for (i = 1; i < argc; i++) {
cp = argv[i];
if (*cp == '-') {