[Prev][Next][Index][Thread]
Re: Checker libs
On Wed, 15 May 1996, El-Hanany Yuval wrote:
> undefined symbols __ntohl & __ntohs.
host to network byte order are just endian convertors, should be real eazy to
duplicate.
both are in my /usr/lib/libc.a (so say nm );
mayby y are linking the wrong libc ?
here is some small to big endian convertors, both long and short will work
src_byte=src;
dest_byte=temp+bytes-1;
for (i=0 ; i<bytes ;i++) {
*dest_byte=*src_byte;
src_byte++;
dest_byte--;
}
Alon
> I've tried duplicating these functions on my own, but to no avail. I
> probably should have recompiled the libc.a but I don't have the sources
> and I was hoping perhaps it's a known problem and someone already solved it.
>
> If anyone has a version of libc.a for the checker which also works with
> the test program try_float.c, I'd be forever grateful if he could make it
> available to me.
>
> Thanks
> Yuval El-Hanany
> yuvalle@math.tau.ac.il
> yuval@checkpoint.com
>
>
------------------------------------------------------------------------------
Alon Lelcuk Tel : (972) 2 664533
Technical Manager Fax : (972) 2 636043
Macom Networking Ltd. Email : lelcuk@macom.co.il
Visit our WWW site at http://www.macom.co.il/index.html
------------------------------------------------------------------------------
Follow-Ups:
References: