ldiv man page on Cygwin

Man page or keyword search:  
man Server   22533 pages
apropos Keyword Search (all sections)
Output format
Cygwin logo
[printable version]

LDIV(3)				    NEWLIB			       LDIV(3)

NAME
       2.20 `ldiv'--divide two long integers

SYNOPSIS
	    #include <stdlib.h>
	    ldiv_t ldiv(long N, long D);

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

RETURNS
       The result is represented with the structure

	     typedef struct
	     {
	      long quot;
	      long rem;
	     } ldiv_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 `int' rather than `long' values, use the similar  function
       `div'.

PORTABILITY
       `ldiv' is ANSI.

	  No supporting OS subroutines are required.

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

	      info

       will give you access to the complete manual.

NEWLIB				  April 2010			       LDIV(3)
[top]

List of man pages available for Cygwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net