VMS Help  —  CRTL  div
    Returns the quotient and the remainder after the division of its
    arguments.

    Format

      #include  <stdlib.h>

      div_t div  (int numer, int denom);

1  –  Arguments

 numer

    A numerator of type int.

 denom

    A denominator of type int.

2  –  Description

    The type div_t is defined in the standard header file <stdlib.h>
    as follows:

    typedef struct
            {
                 int   quot, rem;
            } div_t;
Close Help