On Thu, 26 Sep 2002, Nikhil Joshi wrote:
I've tried this simple prog to encrypt a file
But it gives "Segmentation Fault " in 'interactive' mode (pls see the
didn't anyone tell you that you have to allocate memory before you can
gets into it?
gets() reads a line from stdin into the buffer pointed to
by s until either a terminating newline or EOF, which it
replaces with '\0'. No check for buffer overrun is per-
formed (see BUGS below).
My guess is it's purely coincidental that your code worked on DOS.
In Mexico we have a word for sushi: bait.
-- Josi Simon