:: Re: [DNG] Pointer error in the back…
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: KatolaZ
Ημερομηνία:  
Προς: Rainer Weikusat
Υ/ο: dng, aitor_czr
Αντικείμενο: Re: [DNG] Pointer error in the backend of Netman
On Thu, Dec 10, 2015 at 01:13:00PM +0000, Rainer Weikusat wrote:

[cut]

> > Hence, there is no way in C in which "p" and "&p" can be "the same
> > thing", especially if you have to decide to use either "p" or "&p" as
> > a first parameter of realloc...
>
> There is, but not in a way which would make sense for realloc:
>
> ---------
> #include <stdio.h>
>
> static int vs[] = {1, 2, 3};
>
> int main(void)
> {
>     printf("%p\t%p\n", vs, &vs);
>     return 0;
> }
> ---------

>
> If we're already "being pedantic" :-)


OK, but that's *really* pedantic ;)

HND

KatolaZ

--
[ Enzo Nicosia aka KatolaZ --- GLUG Catania -- Freaknet Medialab ]
[ me [at] katolaz.homeunix.net -- http://katolaz.homeunix.net -- ]
[ GNU/Linux User:#325780/ICQ UIN: #258332181/GPG key ID 0B5F062F ]
[ Fingerprint: 8E59 D6AA 445E FDB4 A153 3D5A 5F20 B3AE 0B5F 062F ]