Skip to content

Commit 620cae2

Browse files
committed
improve wording
1 parent 8dbc081 commit 620cae2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

threads.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,10 +1519,10 @@
15191519
thread safe. That said, it does not make it totally safe to use.
15201520
(not mentioning that a program relying on this behavior is not portable)
15211521
see example \example{reentrant/gethostbyname.c}.
1522-
A bit better is to use reentrant version of this function called
1522+
A bit better is to use reentrant version of this function called
15231523
\texttt{gethostbyname\_r} (if it is available on given system),
15241524
which takes the address of where the result will be stored as parameter,
1525-
which makes it reentrant. Much better is to use standard function
1525+
which makes it reentrant. Better yet is to use standard function
15261526
\texttt{getaddrinfo} (see page) \pageref{GETADDRINFO}, which is reentrant
15271527
by itself.
15281528

0 commit comments

Comments
 (0)