This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Dennis Yurichev wrote, On 16.5.2010 8:19: > Hi. > > I have a software using getlong()/getshort() functions which are also > synonyms to ns_get32()/ns_get16(). > But they are removed from cygwin? > Why and what to use instead of? Wow. Having so badly named functions in public name space... You cold reimplement the missing functions like this: unsigned short _getshort(unsigned char *ptr) { unsigned short x; memcpy (&x, ptr, sizeof (x)); return x; // or return ntohs (x); if the data are in network byte order. } ... Actually, if you do grep over header files you will find that arpa/nameser.h contains ns_get32() etc. -- VH -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |