Re: Code fails with Segmentation Fault
- From: "Tom St Denis" <tomstdenis@xxxxxxxxx>
- Date: 28 Nov 2006 09:55:11 -0800
Bill Medland wrote:
Vlad Dogaru wrote:
Hello,
I am trying to learn C, especially pointers. The following code
attempts to count the appearences of each word in a text file, but
fails invariably with Segmentation Fault. Please help me out, I've
already tried all my ideas. Also, please do comment on my coding style
or other aspects. Thank you.
First of all use a debugger to find out where the seg fault occurs.
I agree with you here. Above all, learning to use gdb [or similiar
tool] is very valuable. Learn to develop with it on a routine basis as
it will save your behind more often than not.
Tom
.
- Follow-Ups:
- Re: Code fails with Segmentation Fault
- From: santosh
- Re: Code fails with Segmentation Fault
- References:
- Code fails with Segmentation Fault
- From: Vlad Dogaru
- Re: Code fails with Segmentation Fault
- From: Bill Medland
- Code fails with Segmentation Fault
- Prev by Date: Re: Code fails with Segmentation Fault
- Next by Date: Re: Macros
- Previous by thread: Re: Code fails with Segmentation Fault
- Next by thread: Re: Code fails with Segmentation Fault
- Index(es):
Relevant Pages
|