Quoth Steve Simon :
> ntohl in libc?
> say its not so?
definitely not the byte swapping versions.
the unpacking of known bytes with known endianness
into an integer, though, is a sensible API that
many programs copy and paste; it's trivial to write,
but it's also common.
I don't feel strongly th
ntohl in libc?
say its not so?
-Steve
> On 13 May 2022, at 10:23 pm, o...@eigenstate.org wrote:
>
> Quoth adr :
>> so I imagined that some functions
>> or macros could be defined already somewhere.
>
> They exist in fcall.h -- see GBIT/PBIT macros.
>
> I wouldn't object mych to putting them i
Quoth adr :
> so I imagined that some functions
> or macros could be defined already somewhere.
They exist in fcall.h -- see GBIT/PBIT macros.
I wouldn't object mych to putting them in libc, possibly
with better names and an accompanying patch to move
the rest of the code over to use them.
data in a determinded endianness, so I imagined that some functions
I mean "certain" endianness, ugly typo.
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tbf58310b561cd180-M6768de0bfccdc64669e77a6f
Delivery options: https://9fans.topi
On Fri, 13 May 2022, o...@eigenstate.org wrote:
Date: Fri, 13 May 2022 10:22:13 -0400
From: o...@eigenstate.org
Reply-To: 9fans <9fans@9fans.net>
To: 9fans@9fans.net
Subject: Re: [9fans] ntohl, htonl, &c
Quoth Alex Musolino :
I'm getting rid of ape but I need the functions at
/sys/src/ape/lib/
Quoth Alex Musolino :
> > I'm getting rid of ape but I need the functions at
> > /sys/src/ape/lib/bsd/ntohl.c to port some software. These functions
> > just change endianness. Is there some native similar functions
> > somebody is aware of? lookman is not helping me here. I don't want
> > to a
> I'm getting rid of ape but I need the functions at
> /sys/src/ape/lib/bsd/ntohl.c to port some software. These functions
> just change endianness. Is there some native similar functions
> somebody is aware of? lookman is not helping me here. I don't want
> to add code if a similar functionali
Hi,
I'm getting rid of ape but I need the functions at
/sys/src/ape/lib/bsd/ntohl.c to port some software. These functions
just change endianness. Is there some native similar functions
somebody is aware of? lookman is not helping me here. I don't want to add code
if a similar functionality is al