Hi Katolaz,

In this case active_wifis is an argument passed by reference. So:

active_wifis  --> is the address
*active_wifis --> is the value

Try doing:

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:  %d   %d  ",  p,  q);

Aitor.

On 12/10/2015 12:56 PM, KatolaZ <kato...@freaknet.org> 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

KatolaZ

_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to