It's been rumoured that Godfree said:
>
> Please help
> I'm having problems when I'm using the sizeof() function in
> combination with the multiplication operator, eg.
> sizeof(dir_ent) * (*count)
> where dir_ent is a structure and *count is a pointer to an integer.
> During compilation no errors are reported but as soon as I run the
> program, a segmentation fault is reported.
I'd guess that the pointer 'count' is null, and thus you try to examine
storage location 0 which is not part of your execution address space --> segault.
--linas