Returns the quotient and the remainder after the division of its arguments.
#include <stdlib.h> ldiv_t ldiv (long int numer, long int denom);
typedef struct { long quot, rem; } ldiv_t;
See also div in this section.