summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_netdb_buf_size.rst
blob: 6c5c79d560ff938b06b0e9d44b73950ff3207cdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PR_NETDB_BUF_SIZE
=================

Recommended size to use when specifying a scratch buffer for
:ref:`PR_GetHostByName`, :ref:`PR_GetHostByAddr`, :ref:`PR_GetProtoByName`, or
:ref:`PR_GetProtoByNumber`.


Syntax
------

.. code::

   #include <prnetdb.h>

   #if defined(AIX) || defined(OSF1)
     #define PR_NETDB_BUF_SIZE sizeof(struct protoent_data)
   #else
     #define PR_NETDB_BUF_SIZE 1024
   #endif