= zmq_msg_data(3)


== NAME
zmq_msg_data - retrieve pointer to message content


== SYNOPSIS
*void *zmq_msg_data (zmq_msg_t '*msg');*


== DESCRIPTION
The _zmq_msg_data()_ function shall return a pointer to the message content of
the message object referenced by 'msg'.

CAUTION: Never access 'zmq_msg_t' members directly, instead always use the
_zmq_msg_ family of functions.


== RETURN VALUE
Upon successful completion, _zmq_msg_data()_ shall return a pointer to the
message content.


== ERRORS
No errors are defined.


== SEE ALSO
* xref:zmq_msg_size.adoc[zmq_msg_size]
* xref:zmq_msg_init.adoc[zmq_msg_init]
* xref:zmq_msg_init_size.adoc[zmq_msg_init_size]
* xref:zmq_msg_init_buffer.adoc[zmq_msg_init_buffer]
* xref:zmq_msg_init_data.adoc[zmq_msg_init_data]
* xref:zmq_msg_close.adoc[zmq_msg_close]
* xref:zmq.adoc[zmq]


== AUTHORS
This page was written by the 0MQ community. To make a change please
read the 0MQ Contribution Policy at <https://zeromq.org/how-to-contribute/>.
