File: read-message.2gg

package info (click to toggle)
golf 601.4.41-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,824 kB
  • sloc: ansic: 20,020; sh: 1,171; makefile: 292
file content (40 lines) | stat: -rw-r--r-- 1,023 bytes parent folder | download
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