lldiv


lldiv

Performs integer division, returning quotient and remainder

 #include <stdlib.h> lldiv_t lldiv ( long long dividend , long long divisor  ); 

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

Example

See the example for div( ) in this chapter.

See Also

div( ), ldiv( ), 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