Help with segfault - Programming On Unix

Users browsing this thread: 1 Guest(s)
xcko
Members
running the code through my machine, I get this warning
Code:
51: warning: format '%p' expects type 'void *', but argument 2 has type 'struct Person *'
if I type cast to a void pointer, everything runs fine.
Maybe that's your issue? The strlen warning is weird, as you have no calls to strlen in your code. Hopefully someone else will be able to help you better.

Here is a good list of c resources that you might appreciate:
http://www.iso-9899.info/wiki/Main_Page


Messages In This Thread
Help with segfault - by robotchaos - 27-07-2017, 06:57 PM
RE: Help with segfault - by xcko - 28-07-2017, 12:12 AM
RE: Help with segfault - by z3bra - 28-07-2017, 03:22 AM
RE: Help with segfault - by robotchaos - 28-07-2017, 01:02 PM
RE: Help with segfault - by z3bra - 28-07-2017, 01:25 PM
RE: Help with segfault - by pranomostro - 28-07-2017, 03:37 PM
RE: Help with segfault - by robotchaos - 28-07-2017, 05:00 PM
RE: Help with segfault - by z3bra - 28-07-2017, 05:52 PM
RE: Help with segfault - by robotchaos - 28-07-2017, 06:39 PM