June 2017
Beginner to intermediate
274 pages
6h 49m
English
Another thing that is not available in a C shared library is the layout of data structures that the functions use, as shown in the following code example:

Again, ctypes gives us a way of filling in the missing information. C's tm structure, which is used for representing date and time information, looks like the following code:

As shown in this example, the translation into ctypes is straightforward. We need to create a class that would inherit from ctypes.Structure, and in that class, we need to create a list ...
Read now
Unlock full access