Deutsch   English   Français   Italiano  
<20250614222720.00002206@yahoo.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Michael S <already5chosen@yahoo.com>
Newsgroups: comp.lang.c
Subject: Re: Loops (was Re: do { quit; } else { })
Date: Sat, 14 Jun 2025 22:27:20 +0300
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <20250614222720.00002206@yahoo.com>
References: <vspbjh$8dvd$1@dont-email.me>
	<86plggzilx.fsf@linuxsc.com>
	<vvnsvt$3k1mu$1@dont-email.me>
	<86ldr4yx0x.fsf@linuxsc.com>
	<vvpmm2$3dhl$1@dont-email.me>
	<vvpsji$4jht$1@dont-email.me>
	<vvr5mg$l85c$1@dont-email.me>
	<vvt2tg$14otk$2@dont-email.me>
	<1000cs3$2234m$1@dont-email.me>
	<87sel8nqid.fsf@nosuchdomain.example.com>
	<20250513202557.281@kylheku.com>
	<87o6vvbxmp.fsf@nosuchdomain.example.com>
	<86jz5jrbrz.fsf@linuxsc.com>
	<102jikt$4hdj$1@raubtier-asyl.eternal-september.org>
	<Edf3Q.52977$kg6.23751@fx38.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 14 Jun 2025 21:27:25 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c3dfcb698f2c8e73d895f7fd610fd3e2";
	logging-data="395311"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19Sy+mRH4shj+ufSMeC9Xfng/irRMsVN+8="
Cancel-Lock: sha1:s4C8uaoy3Cp13i5BBHVjDpNLcfQ=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)

On Sat, 14 Jun 2025 13:57:56 GMT
scott@slp53.sl.home (Scott Lurndal) wrote:

> Bonita Montero <Bonita.Montero@gmail.com> writes:
> >Am 10.06.2025 um 15:01 schrieb Tim Rentsch:
> >  
> >> Consider the following program:
> >> 
> >>     #include <stdio.h>
> >>     #include <string.h>
> >> 
> >>     typedef unsigned long long ULL;
> >>     ULL hello = ((((0ULL +'o' <<8) +'l' <<8) +'l' <<8) +'e' <<8) +
> >> 'h';
> >> 
> >>     int
> >>     main(){
> >>        printf( "length is %zu\n", strlen( (char*)&hello ) );
> >>        return  0;
> >>     }
> >> 
> >> On a little endian machine (with CHAR_BIT == 8) this program works,
> >> and TTBOMK conforms to both the letter and the spirit of the C
> >> standard, without any undefined behavior (on that platform).  Yet
> >> there are no arrays in sight, and certainly no array objects.  
> >
> >There are not much remaining big-endian architectures today.  
> 
> Ethernet is big-endian at the byte level and little-endian
> at the bit level.
> 

802.3 frames are big-endian, because of Length field.
Several orders of magnitude more popular Ethernet II frames are
endian-neutral.