How to call c function "TIFFGetField" in swift.
Does anyone have an idea or give me a sample? Thanks
//The function declared
extern int TIFFGetField(TIFF* tif, uint32 tag, ...);
/* sample: in objective-c is working very well */
unsigned int width;
TIFFGetField(tiff, TIFFTAG_IMAGEWIDTH, &width);
/* sample: in swift failed */
var width: UInt32 = 0
TIFFGetField(tiff, uint32(TIFFTAG_IMAGEWIDTH), &width)
/* error message:
* 'TIFFGetField' is unavailable: Variadic function is unavailable
*/