summaryrefslogtreecommitdiff
path: root/src/stdlib/ldiv.c
blob: 9345b8e0d4d5a2200f62181adf80ed2d7c7e24de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#if 0

#include <stdlib.h>

/** calculate quotient and remainder **/

ldiv_t ldiv(long int numer, long int denom)
{
	ldiv_t d;
	d.quot = numer / denom;
	d.rem = numer % denom;
	return d;
}

/***
computes both the quotient and remainder of ARGUMENT(numer)
divided by ARGUMENT(denom).
***/

/*
UNDEFINED(The result cannot be represented)
RETURN_SUCCESS(a TYPEDEF(ldiv_t) containing both the quotient and remainder)
STDC(1)
*/


#endif