> You can use htonl/ntohl from external libs.
> A very quick example below. Please correct me if I got it wrong.
>
> ' Gambas module file
> PUBLIC EXTERN htonl(ln AS Long) AS Long IN "libc:6"
> PUBLIC EXTERN ntohl(ln AS Long) AS Long IN "libc:6"
>
> PUBLIC SUB Main()
> DIM ln, lh AS Integer
>
>
You can use htonl/ntohl from external libs.
A very quick example below. Please correct me if I got it wrong.
' Gambas module file
PUBLIC EXTERN htonl(ln AS Long) AS Long IN "libc:6"
PUBLIC EXTERN ntohl(ln AS Long) AS Long IN "libc:6"
PUBLIC SUB Main()
DIM ln, lh AS Integer
ln = 1193046
PRINT "
I guess *gb.BigEndian* and *gb.LittleEndian* are what you are looking for.
*System.ByteOrder* will return the endianness of the operating system.
Regards
Les Hardy
Mohammad Razeghi wrote:
> Hi
>
> I am looking for c++ htonl function equal in gambas can any one help please
> ?
>
> Thanks ...
Hi
I am looking for c++ htonl function equal in gambas can any one help please
?
Thanks ...
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine