[LCP]sizeof question.
    ianezz at sodalia.it 
    ianezz at sodalia.it
       
    Fri Sep 20 16:14:09 UTC 2002
    
    
  
David, in un'altra vita, ha scritto:
 >   Am I using the sizeof correctly in the calloc call?
Yes, it returns the size of the type of *ptr, which is struct _Options.
 > Sould I be 
 > using ptr instead of *ptr?
No, since it would return the size of the type of ptr, which is a
pointer to struct _Options.
-- 
 |   \    \  | ___|_  |_  | ianezz AT sodalia.it
 |  _ \  | \ | _|    /   /  Visita il LinuxTrent a
_|_/  _\_|  _|____|___|___| http://www.linuxtrent.it
    
    
More information about the linuxCprogramming
mailing list