1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
.TH GOLF 2gg $VERSION $DATE Development Tools
.SH NAME
read-message \- (messages)
.SH PURPOSE
Read key/value from message.
.SH SYNTAX
.RS 4
.EX
read-message <message> \\
key <key> \\
value <value> \\
[ status <status>
.EE
.RE
.SH DESCRIPTION
read-message reads strings <key> (in "key" clause) and <value> (in "value" clause) from <message>, which must have been created with \fBnew-message\fP.
The reading of key/value pairs starts from the beginning of message and proceeds sequentially forward. Once a key/value pair is read it cannot be read again.
<status> number (in "status" clause) will be GG_OKAY for a successful read, GG_ERR_FORMAT if message is not in \fBSEMI\fP format or GG_ERR_LENGTH if message isn't of proper length.
Once a message is read from, it cannot be written to (see \fBwrite-message\fP).
.SH EXAMPLES
See \fBnew-message\fP.
.SH SEE ALSO
Messages
\fBget-message\fP
\fBnew-message\fP
\fBread-message\fP
\fBSEMI\fP
\fBwrite-message\fP
See all
\fBdocumentation\fP
|