I have NSString
"3265" and i have to send this to a method in function in '.c
' file has a parameter unsigned short
here my code..
In .c
file
bool checkData(unsigned short num) {
}
In .swift
file
var number: NSString! = "3265"
i need to send '0x3265
' to checkData
function.
How can i convert 3265
(NSString
) to 0x3265
(unsigned short
)