Need help for Xbee s2c API mode C/C++ code

I need to transmit the data between two computers using xbee s2c. I have to use C or C++ language to do the task. This need to be done using the API mode instead of AT mode. I’m unable to find an example for the same.
I have already looked into the digi Python library, Java library and ANSI C library. Both Java and Python library github page gives examples for implementation of these libraries to transmit the data in API mode ( and, but the ANSI C library fails to give one such example.
I tried to understand the library source and implement, but I couldn’t do it.
I request to help me in this regard.

PS: I’m implementing this on a normal computer, hence I cannot use anything related to Arduino code.