Re: Problems compiling Citadel/UX
On Sun, Aug 15, 1999 at 11:43:27PM -0500,
Michael Merten <mikemerten@yahoo.com> wrote:
> =======================================================================
> /*
>
> Encode or decode file as MIME base64 (RFC 1341)
>
> by John Walker
> http://www.fourmilab.ch/
>
> This program is in the public domain.
>
> */
>
> #define REVDATE "11th August 1997"
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <ctype.h>
> #include <string.h>
>
> #define TRUE 1
> #define FALSE 0
>
> #define LINELEN 72 /* Encoded line length (max 76) */
>
> typedef unsigned char byte; /* Byte type */
>
> static FILE *fi = stdin; /* Input file */
> static FILE *fo = stdout; /* Output file */
The problem is in the previous two lines. fi and fo are being initialized
with a variable, which isn't legal. They should be set in main(), not
here.
--
Eric Gillespie, Jr. <*> epg@pobox.com
"Man is a rope, tied between beast and overman--a rope over an abyss.
A dangerous across, a dangerous on-the-way, a dangerous looking-back,
a dangerous shuddering and stopping."
--Friedrich Nietzsche
Reply to: