A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/cstdlib/ldiv_t/ below:

type

<cstdlib>

ldiv_t

Structure returned by ldiv

Structure to represent the result value of an integral division performed by function ldiv (and, in C++, possibly also by div).

It has two data members of type long int: quot and rem, defined in either order. A possible definition could be:


1
2
3
4
typedef struct {
  long int quot;
  long int rem;
} ldiv_t;

Members
quot
Represents the quotient of the integral division operation performed by ldiv, which is the integer of lesser magnitude that is nearest to the algebraic quotient.
rem
Represents the remainder of the integral division operation performed by ldiv, which is the integer resulting from subtracting quot to the numerator of the operation.

See also
div_t
Structure returned by div (type)
div
Integral division (function)
ldiv
Integral division (function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4