ares_version.3 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .\" $Id$
  2. .\"
  3. .\" Copyright 2004 by Daniel Stenberg
  4. .\"
  5. .\" Permission to use, copy, modify, and distribute this
  6. .\" software and its documentation for any purpose and without
  7. .\" fee is hereby granted, provided that the above copyright
  8. .\" notice appear in all copies and that both that copyright
  9. .\" notice and this permission notice appear in supporting
  10. .\" documentation, and that the name of M.I.T. not be used in
  11. .\" advertising or publicity pertaining to distribution of the
  12. .\" software without specific, written prior permission.
  13. .\" M.I.T. makes no representations about the suitability of
  14. .\" this software for any purpose. It is provided "as is"
  15. .\" without express or implied warranty.
  16. .\"
  17. .TH ARES_VERSION 3 "29 January 2004"
  18. .SH NAME
  19. ares_version \- Get the version number of the library
  20. .SH SYNOPSIS
  21. .nf
  22. .B #include <ares.h>
  23. .PP
  24. .B const char *ares_version(int *\fIversion\fP)
  25. .fi
  26. .SH DESCRIPTION
  27. The
  28. .B ares_version
  29. function gets the library version as a string and optionally as an integer
  30. stored in the
  31. .IR version ,
  32. argument. If you pass a NULL, no integer is attempted to be returned.
  33. The integer is built up as 24bit number, with 8 separate bits used for major
  34. number, minor number and patch number. This makes a version string such as
  35. 1.2.3 will be returned as the hexadecimal number 0x010203 (decimal 66051).
  36. .SH NOTES
  37. This function is not compatible with ares.
  38. .SH AUTHOR
  39. Daniel Stenberg