Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch.embedded > #31976
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!panix!.POSTED.localhost!not-for-mail |
|---|---|
| From | Grant Edwards <invalid@invalid.invalid> |
| Newsgroups | comp.arch.embedded |
| Subject | Re: addon functions |
| Date | Tue, 1 Aug 2023 22:26:58 -0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <uac0ri$6n0$1@reader2.panix.com> (permalink) |
| References | <uabt18$qtu$1@reader2.panix.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Tue, 1 Aug 2023 22:26:58 -0000 (UTC) |
| Injection-Info | reader2.panix.com; posting-host="localhost:::1"; logging-data="6880"; mail-complaints-to="abuse@panix.com" |
| User-Agent | slrn/1.0.3 (Linux) |
| Xref | csiph.com comp.arch.embedded:31976 |
Show key headers only | View raw
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 <stdlib.h>
div_t div(int numerator, int denominator);
ldiv_t ldiv(long numerator, long denominator);
lldiv_t lldiv(long long numerator, long long denominator);
#include <inttypes.h>
imaxdiv_t imaxdiv(intmax_t numerator, intmax_t denominator);
[...]
Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
addon functions Hul Tytus <ht@panix.com> - 2023-08-01 21:21 +0000
Re: addon functions Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2023-08-01 23:44 +0200
Re: addon functions Grant Edwards <invalid@invalid.invalid> - 2023-08-01 22:26 +0000
Re: addon functions Hul Tytus <ht@panix.com> - 2023-08-03 16:52 +0000
Re: addon functions David Brown <david.brown@hesbynett.no> - 2023-08-02 18:38 +0200
csiph-web