:: Re: [DNG] Pointer error in the back…
Kezdőlap
Delete this message
Reply to this message
Szerző: aitor_czr
Dátum:  
Címzett: KatolaZ, dng
Tárgy: Re: [DNG] Pointer error in the backend of Netman
Hi Katolaz,

Try the folling code:

int x = 5;
int *p,*q;

p=&x; // This is -> *p=5
q=p;

printf(" The values are:    %d  %d  ", *p,*q);
printf(" The addresses are: %p  %p  ",  p, q);


So:

1) active_wifis is the address
2) *active_wifis is the value

Aitor.

On 12/10/2015 12:56 PM, KatolaZ <katolaz@???> wrote:

Sorry for the silly, uninformed, and preposterous comment, which you
would probably be better off ignoring altogether, but I can't see any
reasonable way in which a C variable and its address might be "the
same", especially when used as the first argument of a realloc (unless
the value of that variable is a pointer to its own address, which is
something so deep to defy my limited understanding)...

HND