Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch.embedded > #31978
| From | Hul Tytus <ht@panix.com> |
|---|---|
| Newsgroups | comp.arch.embedded |
| Subject | Re: addon functions |
| Date | 2023-08-03 16:52 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <uaglvp$id9$1@reader2.panix.com> (permalink) |
| References | <uabt18$qtu$1@reader2.panix.com> <uac0ri$6n0$1@reader2.panix.com> |
Thanks Grant. I'd never seen those before and assumed they were Lewin's creation. Hul Grant Edwards <invalid@invalid.invalid> wrote: > 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