strcpy(stc->val,var) = Segmention Fault

"Uílton O. Dutra" uilton@schmitt.com.br
Fri Jul 18 22:18:00 GMT 2003


Hi folks,

I create simple program to read configurations files.
With Bcc32-Win98 my prog works fine, but on Gcc-Linux I got "Segmention Fault" in "strcpy(stc->val,var)".
What's wrong?

Thanks,

UOD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conf.c
Type: application/octet-stream
Size: 2326 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20030718/348379ae/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.cfg
Type: application/octet-stream
Size: 130 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20030718/348379ae/attachment-0001.obj>


More information about the Gcc-help mailing list