Manpage of LLDIV

Google
Web www.fiveanddime.net

LLDIV

Section: NEWLIB (3)
Updated: 2005 Feb 23
Index Return to Main Contents
 

NAME

1.21 `lldiv'--divide two long long integers

 

SYNOPSIS


     #include <stdlib.h>
     lldiv_t lldiv(long long N, long long D);  

DESCRIPTION

Divide N/D, returning quotient and remainder as two long long integers in a structure `lldiv_t'.

 

RETURNS

The result is represented with the structure


      typedef struct
      {
       long long quot;
       long long rem;
      } lldiv_t;


   where the `quot' field represents the quotient, and `rem' the remainder. For nonzero D, if ``R = ldiv(N,D);'' then N equals ``R.rem + D*R.quot''.


   To divide `long' rather than `long long' values, use the similar function `ldiv'.

 

PORTABILITY

`lldiv' is ISO 9899 (C99) compatable.


   No supporting OS subroutines are required.

 

SEE ALSO

lldiv is part of the libc library. The full documentation for libc is maintained as a Texinfo manual. If info and libc are properly installed at your site, the command
info libc

will give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
PORTABILITY
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:25:24 GMT, May 16, 2005



www.fiveanddime.net








Google
Web www.fiveanddime.net