C Tutorial/stdlib.h/ldiv — различия между версиями

Материал из C\C++ эксперт
Перейти к: навигация, поиск
м (1 версия: Импорт контента...)
 
(нет различий)

Текущая версия на 13:32, 25 мая 2010

ldiv

Item Value Header file stdlib.h Declaration ldiv_t ldiv(long int numerator, long int denominator); Return returns the quotient and remainder of the operation numerator/denominator in an ldiv_t structure.

The structure type ldiv_t has these two fields:


<source lang="cpp">long int quot; /* quotient */

 long int rem;  /* remainder */</source>