Detecting C types limits ("limits.h") in python?

Viewed 1113

I've made a little test program in python to test some C functions in many cases. This python program use ctypes to import and use my C functions.

But I'd also like to test minimum and maximum values cases (limits.h's ULLONG_MAX for instance).

But since some of these limits can be system dependant, I'd prefer to avoid hard coding it in my program; I'd rather dynamically get it.

Is it possible to get these limits values in python?

1 Answers
Related