ldiv


ldiv

Performs integer division, returning quotient and remainder

 #include <stdlib.h> ldiv_t ldiv ( long dividend , long divisor  ); 

The parameters of ldiv( ) are long integers, and its return value is a structure of type ldiv_t containing two long integers. Otherwise, ldiv( ) works the same as the int function div( ).

Example

See the example for div( ) in this chapter.

See Also

div( ), lldiv( ), imaxdiv( )



C(c) In a Nutshell
C in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596006977
EAN: 2147483647
Year: 2006
Pages: 473

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net