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

  man pages->OpenBSD man pages -> div (3)              
Title
Content
Arch
Section
 

DIV(3)

Contents


NAME    [Toc]    [Back]

     div - return quotient and remainder from division

SYNOPSIS    [Toc]    [Back]

     #include <stdlib.h>

     div_t
     div(int num, int denom);

DESCRIPTION    [Toc]    [Back]

     The div() function computes the value num/denom and  returns
the quotient
     and  remainder  in a structure named div_t that contains two
int members
     named quot and rem.

SEE ALSO    [Toc]    [Back]

      
      
     ldiv(3), math(3), qdiv(3)

STANDARDS    [Toc]    [Back]

     The div() function  conforms  to  ANSI  X3.159-1989  (``ANSI
C'').

OpenBSD      3.6                          April      19,     1991
[ Back ]
 Similar pages
Name OS Title
div Linux computes the quotient and remainder of integer division
ldiv Linux computes the quotient and remainder of long integer division.
lldiv FreeBSD returns quotient and remainder
imaxdiv FreeBSD returns quotient and remainder
mdSetTempo IRIX set tempo and division for a port
div IRIX perform integer division
labs Tru64 Computes absolute value and division of integers
ldiv Tru64 Computes absolute value and division of integers
div Tru64 Computes absolute value and division of integers
abs Tru64 Computes absolute value and division of integers
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service