hi, QNX has unsigned integers, e.g. _uint8, _uint16, _uint32, etc. however i need _uint48, please would you explain how to define it in QNX? Actually, my purpose is to read 48 bit data of second according to unix time standard (timespec). Please advise. Mital
There is no such thing as _uint48 and in C you can`t define one. You could declare a structure that maps it. struct uint48 { short high; int low; }; But you'll have to handle everything yourself. I would move that value into a long lnog ( int64_t ) as soon as possible in your code and work with that value instead. -----Message d'origine----- De : Mital Kanabar [mailto:community-noreply@qnx.com] Envoyé : 11 août 2010 17:46 À : general-networking Objet : how to define _uint48 in QNX hi, QNX has unsigned integers, e.g. _uint8, _uint16, _uint32, etc. however i need _uint48, please would you explain how to define it in QNX? Actually, my purpose is to read 48 bit data of second according to unix time standard (timespec). Please advise. Mital _______________________________________________ General http://community.qnx.com/sf/go/post62701