Link to home
Start Free TrialLog in
Avatar of Snapples
Snapples

asked on

What is the voidp datatype?

Hello all.

I want to download a zip file on the iPhone and unzip it straight from the downloaded data. I'm writing in Objective C but the "library" I'm using is minizip, which is written in standard C.

This library makes use of the type unzFile, which is a typedef of voidp.
Also at a certain point it uses a filestream which is of the type voidpf.

Can anyone explain to me what these datatypes are? Are they typedefs for void pointers or something?

Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Infinity08
Infinity08
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
the definitions are

#ifdef STDC 
   typedef void const *voidpc; 
   typedef void FAR   *voidpf; 
   typedef void       *voidp; 
#else 
   typedef Byte const *voidpc; 
   typedef Byte FAR   *voidpf; 
   typedef Byte       *voidp; 
#endif

Open in new window


Sara