The types qdiv_t and lldiv_t are defined in the <stdlib.h> header file as follows: typedef struct { __int64 quot, rem; } qdiv_t, lldiv_t;