views:

23

answers:

0

Is res_query (int res_query(const char *dname, int class, int type,unsigned char *answer, int anslen);) thread-safe?

I think so, because it writes its answer to an user-allocated buffer (in contrast to gethostbyname that uses a statically allocated buffer).

Does somebody know for sure?