Newbie needing some help with segmentation fault

H

Hendrik Maryns

James Kuyper schreef:
The variable named 'file' is the same one here that it was in the call
to fopen().


You need to add

#include <errno.h>

before using either perror() or errno.

Once again: thanks to you all.

H.
--
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHWV+qe+7xMGD3itQRAuf4AJ9ebQRCFhPVz3bYSRC37Ia1fncgcQCeKGi3
RMm+y6udndDztO2BWdIXH3Y=
=klBD
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top