HELPLIB.HLB  —  CRTL  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);

1  –  Arguments

 numer

    A numerator of type long int.

 denom

    A denominator of type long int.

2  –  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.
Close Help