inet_aton 0x0 in integer in structure
Allin Cottrell
cottrell@wfu.edu
Fri May 12 11:25:00 GMT 2017
On Fri, 12 May 2017, alleswirdbesser@posteo.de wrote:
> It is valid ANSI C code and it makes sense. And it is a pointer, like in the
> header:
> extern int inet_aton (const char *__cp, struct in_addr *__inp) __THROW;
> The compiler accepted it as well.
As the code stands it's a pointer to nowhere: you have not allocated
any storage "on the heap" nor taken the address of an object "on the
stack". This is very elementary, don't make a fool of yourself.
Allin Cottrell
More information about the Libc-help
mailing list