Previous | Next | Contents | Index |
Extract an address from a list of parsed addresses.
argument informationstatus = PMDF_address_get
(addr_context, index, address, address_len)
Argument | Data type | Access | Mechanism |
---|---|---|---|
addr_context | context pointer | read | value |
index | integer | read | value |
address | descriptor | read/write | reference |
address_len | unsigned word | write | reference |
argument informationstatus = PMDFaddressGet
(addr_context, index, address, address_len)
int PMDFaddressGet(PMDF_addr *addr_context, int index, char *address, int *address_len) |
addr_context
Address context generated by a previous call toPMDFaddressParseList
.index
Index of the address to extract from the list of parsed addresses.address
String to receive the extracted address. Must be at leastALFA_SIZE
bytes in length for PMDF_address_get andALFA_SIZE+1
bytes forPMDFaddressGet
.line_len
Length in bytes of the returned address. Callers usingPMDFaddressGet
must, on input, supply the maximum length in bytes of address.
After parsing a line of addresses withPMDFaddressParseList
, the individual addresses can each be retrieved withPMDFaddressGet
. CallPMDFaddressGet
once for each address. The index argument can range from 1 to count where count is the count of parsed addresses returned byPMDFaddressParseList
. The first address corresponds to an index value of 1 and the last to an index value of count. Note thatPMDFaddressGet
will also heuristically correct addresses with minor syntactical problems.
PMDF__OK Normal, successful completion. PMDF__NO Value for index is out of range. No address returned.
Previous | Next | Contents | Index |