test usage of c function in obj-c