Groups | Search | Server Info | Login | Register
| Path | csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
| Newsgroups | comp.std.c |
| Subject | Re: May a string span multiple, independent objects? |
| Date | Thu, 08 Aug 2024 08:51:26 -0700 |
| Organization | A noiseless patient Spider |
| Lines | 19 |
| Message-ID | <86v80bgght.fsf@linuxsc.com> (permalink) |
| References | <20240703141500$00ed@vinc17.org> <lel8ndF7f8iU1@mid.dfncis.de> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=iso-8859-1 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Thu, 08 Aug 2024 17:51:26 +0200 (CEST) |
| Injection-Info | dont-email.me; posting-host="3394822579de1ea0c2b9a1ce158ed8c5"; logging-data="93807"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+OfUYHrHLeitvJtlnfHCHRhgyiMyThSiQ=" |
| User-Agent | Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) |
| Cancel-Lock | sha1:/ZaqSb5bW43vmrY5PgrRV4zPM98= sha1:Mc2TvcdUmXsVXEMwusK7UTqMo5U= |
| Xref | csiph.com comp.std.c:6658 |
Show key headers only | View raw
Hans-Bernhard Bröker <HBBroeker@gmail.com> writes: > Comparing pointers pointing at distinct objects is already invalid > (for some interpretation of "invalid"), [...]. Using relational operators (<, <=, >, >=) to compare pointers to distinct objects has defined behavor only if the pointed-to objects are sub-objects of the same containing object. Equality operators (==, !=) may be used, with defined behavior, to compare pointers to any objects, regardless of whether the pointed-to objects belong to an enclosing containing object. > Yes, that means the implementation of a function like memmove() > cannot be fully portable C. The function memmove() can be defined in fully portable C. It's just more convenient to write it in a way that takes advantage of implementation internals.
Back to comp.std.c | Previous | Next — Previous in thread | Next in thread | Find similar
May a string span multiple, independent objects? Vincent Lefevre <vincent-news@vinc17.net> - 2024-07-03 14:31 +0000
Re: May a string span multiple, independent objects? Hans-Bernhard Bröker <HBBroeker@gmail.com> - 2024-07-03 17:23 +0200
Re: May a string span multiple, independent objects? Vincent Lefevre <vincent-news@vinc17.net> - 2024-07-03 15:37 +0000
Re: May a string span multiple, independent objects? James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-07-03 12:11 -0400
Re: May a string span multiple, independent objects? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-08-08 08:51 -0700
Re: May a string span multiple, independent objects? James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-07-03 11:59 -0400
Re: May a string span multiple, independent objects? Ben Bacarisse <ben@bsb.me.uk> - 2024-07-03 22:08 +0100
Re: May a string span multiple, independent objects? James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-07-03 17:36 -0400
Re: May a string span multiple, independent objects? Vincent Lefevre <vincent-news@vinc17.net> - 2024-07-04 13:22 +0000
Re: May a string span multiple, independent objects? Ben Bacarisse <ben@bsb.me.uk> - 2024-07-05 05:14 +0100
Re: May a string span multiple, independent objects? James Kuyper <jameskuyper@alumni.caltech.edu> - 2024-07-05 01:37 -0400
Re: May a string span multiple, independent objects? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-08-08 08:35 -0700
Re: May a string span multiple, independent objects? Kaz Kylheku <643-408-1753@kylheku.com> - 2024-07-05 07:14 +0000
csiph-web