Allocate memory for arg[] before gets(). Use malloc().
Mandar
On Thu, 26 Sep 2002 Nikhil Joshi wrote :
Hi!
I've tried this simple prog to encrypt a file using XOR
But it gives "Segmentation Fault " in 'interactive' mode (pls see the source code)
it runs perfectly well in DOS (using Turbo C++ 3.0)
Can ny1 help pls ?
-- Nikhil Joshi