*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> imaxdiv (3)              
Title
Content
Arch
Section
 

IMAXDIV(3)

Contents


NAME    [Toc]    [Back]

     imaxdiv -- returns quotient and remainder

LIBRARY    [Toc]    [Back]

     Standard C Library (libc, -lc)

SYNOPSIS    [Toc]    [Back]

     #include <inttypes.h>

     imaxdiv_t
     imaxdiv(intmax_t numer, intmax_t denom);

DESCRIPTION    [Toc]    [Back]

     The imaxdiv() function computes the value of numer divided by denom and
     returns the stored result in the form of the imaxdiv_t type.

     The imaxdiv_t type is defined as:

	   typedef struct {
		   intmax_t quot; /* Quotient. */
		   intmax_t rem;  /* Remainder. */
	   } imaxdiv_t;

SEE ALSO    [Toc]    [Back]

      
      
     div(3), ldiv(3), lldiv(3), math(3)

STANDARDS    [Toc]    [Back]

     The imaxdiv() function conforms to ISO/IEC 9899:1999 (``ISO C99'').

HISTORY    [Toc]    [Back]

     The imaxdiv() function first appeared in FreeBSD 5.0.


FreeBSD 5.2.1		       November 14, 2001		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
ldiv FreeBSD return quotient and remainder from division
div OpenBSD return quotient and remainder from division
div FreeBSD return quotient and remainder from division
ldiv OpenBSD return quotient and remainder from division
ldiv NetBSD return quotient and remainder from division
div NetBSD return quotient and remainder from division
lldiv NetBSD return quotient and remainder from division
qdiv NetBSD return quotient and remainder from division
qdiv OpenBSD return quotient and remainder from division
div Linux computes the quotient and remainder of integer division
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service