![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
my machine is little endian, and binary data that i need to convert is big endian. hence when i try to convert to text, it gives weird values.
does ntohl function in endian.h help?? where can i get endian.h from? please someone help!!!! |
|
||||
|
If your binary data is integers ntohl() will help.
WHAT OS? endian.h is not standard for this see: htons(), htonl(), ntohs(), ntohl() |
|
||||
|
ntohl
Quote:
no my binary data is float?? what to use??? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|