Document terminating NUL behavior in API more explicitly

This addresses #2169.
This commit is contained in:
Andreas Rottmann 2016-11-16 19:50:50 +01:00
parent 93ccb5a16d
commit 5d176cbe98

View File

@ -26,7 +26,9 @@ DESCRIPTION
The _zmq_setsockopt()_ function shall set the option specified by the
'option_name' argument to the value pointed to by the 'option_value' argument
for the 0MQ socket pointed to by the 'socket' argument. The 'option_len'
argument is the size of the option value in bytes.
argument is the size of the option value in bytes. For options taking a value of
type "character string", the provided byte data should either contain no zero
bytes, or end in a single zero byte (terminating ASCII NUL character).
The following socket options can be set with the _zmq_setsockopt()_ function: