#include <stdlib.h>typedef struct{ long int quot; long int rem;} ldiv_t;
ldiv_t stores the quotient and remainder returned by ldiv .
ldiv_t conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).
ldiv