msgget

This retrieves message data from the region that is specified by offset and length.

msgget ?-cvtnull char? msgId ?offset? ?length?

Nulls in the retrieved data are converted to char if you use -cvtnull. If the message contains nulls and you do not use the -cvtnull option, then you cannot access message data past the Tcl message's first null.

In addition, if you store the string returned in this non-conversion case, then only the Tcl-visible string portion is stored.

This command returns the retrieved, converted data.