[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


lldiv

Compute the long long integer quotient and remainder.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <stdlib.h>
ldiv_t ldiv(long long numer, long long denom);
Parameters:

Parameters for this facility are:

numer  
long long  
The numerator  
denom  
long long  
The denominator  

Remarks:

The lldiv_t type is defined in <div_t.h> as


  typedef struct {    long long quot, rem;
  } lldiv_t;
Return:

lldiv() divides denom into numer and returns the quotient and remainder as an lldiv_t type.

See Also:

"ldiv"

"fmod"

"lldiv_t"


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000