The type div_t is defined in the standard header file <stdlib.h> as follows: typedef struct { int quot, rem; } div_t;