_RSLV_Template_T rslvsp_template;
_ENQ_Msg_Prefix_T enq_msg_prefix;
_DEQ_Msg_Prefix_T deq_msg_prefix;
char enq_msg[5],
deq_msg[5];
int success=;
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Create a library to create the user queue into. ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
system("CRTLIB LIB(QUEUELIB)");
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Initialize the error code parameter. ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
error_code.ec_fields.Bytes_Provided=sizeof(error_code_struct);
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
/ᑍ Call the QUSCRTUQ API to create a user queue. ᑍ/
/ᑍ ᑍ/
/ᑍ This will create a user queue called EXAMPLEQ in library ᑍ/
/ᑍ QUEUELIB, with the following attributes: ᑍ/
/ᑍ ᑍ/
/ᑍ 1. Extended attribute of "VALID ", which could have ᑍ/
/ᑍ been any valid ᑍNAME. ᑍ/
/ᑍ 2. A queue type of "F", or First-in, first-out. ᑍ/
/ᑍ 3. A key length of . If the queue is not keyed, this ᑍ/
/ᑍ value must be . ᑍ/
/ᑍ 4. A maximum message size of 1 bytes. This number can ᑍ/
/ᑍ be as large as 64K bytes. ᑍ/
/ᑍ 5. The initial number of messages set to 1. ᑍ/
/ᑍ 6. Additional number of messages set to 1. ᑍ/
/ᑍ 7. Public authority of ᑍUSE. ᑍ/
/ᑍ 8. A valid text description. ᑍ/
/ᑍ 9. Replace option of ᑍYES. This means that if a user queue ᑍ/
/ᑍ already exists by the name specified, in the library ᑍ/
/ᑍ specified, that it will be replaced by this ᑍ/
/ᑍ request. ᑍ/
/ᑍ 1. Domain value of ᑍUSER. ᑍ/
/ᑍ 11. Pointer value of ᑍNO. Messages in the queue cannot ᑍ/
/ᑍ contain pointer data. ᑍ/
/ᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ/
memcpy(text_desc, "THIS IS TEXT FOR THE EXAMPLE USER QUEUE ",
5);
QUSCRTUQ("EXAMPLEQ QUEUELIB ", /ᑍ Qualified user queue name ᑍ/
"VALID ", /ᑍ Extended attribute ᑍ/
"F", /ᑍ Queue type ᑍ/
, /ᑍ Key length ᑍ/
1, /ᑍ Maximum message size ᑍ/
1, /ᑍ Initial number of messages ᑍ/
1, /ᑍ Additional number of messages ᑍ/
"ᑍALL ", /ᑍ Public authority ᑍ/
text_desc, /ᑍ Text Description ᑍ/
"ᑍYES ", /ᑍ Replace existing user queue ᑍ/
&error_code, /ᑍ Error code ᑍ/
Appendix A. Performing Tasks Using APIs—Examples A-19