----------------------------------------------------------------------------------
@MSGID: 1@reader2.panix.com> b36c9b6e
@REPLY: 1@reader2.panix.com> 9a3d6c72
@REPLYADDR Grant Edwards
<invalid@invalid.invalid>
@REPLYTO 2:5075/128 Grant Edwards
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@reader2.panix.com>
@RFC-References: 1@reader2.panix.com>
@TZUTC: -0000
@PID: slrn/1.0.3 (Linux)
@TID: FIDOGATE-5.12-ge4e8b94
On 2023-08-01, Hul Tytus <
ht@panix.com> wrote:
> Lewin Edwards in his dosfs file system uses the ldiv() functions shown below:
> sector = ldiv(offset, SECTOR_SIZE).quot and
> offset = ldiv(offset, SECTOR_SIZE).rem
> Anybody know how this is declared or, maybe, defined?
$ man ldiv
------------------------------------------------------------------------------
div(3) Library Functions Manual div(3)
NAME
div, ldiv, lldiv, imaxdiv - compute quotient and remainder of an inte-
ger division
LIBRARY
Standard C library (libc, -lc)
SYNOPSIS
#include
div_t div(int numerator, int denominator);
ldiv_t ldiv(long numerator, long denominator);
lldiv_t lldiv(long long numerator, long long denominator);
#include
imaxdiv_t imaxdiv(intmax_t numerator, intmax_t denominator);
[...]
--- slrn/1.0.3 (Linux)
* Origin: PANIX Public Access Internet and UNIX, NYC (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441