ldiv

Returns the quotient and the remainder after the division of its arguments.

Format

#include  <stdlib.h>

ldiv_t ldiv  (long int numer, long int denom);

Arguments

numer
A numerator of type long int.
denom
A denominator of type long int.

Description

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

See also div in this section.


Previous Page | Next Page | Table of Contents | Index