Guardian C Library Calls Reference Manual
get_max_assign_msg_ordinal (supplementary)
3-76 128833—Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
get_max_assign_msg_ordinal (supplementary)
The get_max_assign_msg_ordinal function determines how many assign messages are
assigned to a particular process.
Return Value
is the number of assign messages that exist for a particular process.
Usage Guidelines
•
To determine the number of assign messages, the get_max_assign_msg_ordinal
function begins counting at 1.
Example
This example uses the get_max_assign_msg_ordinal function to determine the total
number of assign messages that exist for a particular process, and then retrieves the
assign messages.
#include <stdlibh>
short i;
short j;
assign_msg_type assign_msg_array[10];
/* ... */
j = get_max_assign_message_ordinal;
for (i = 0; i <= j; i++)
{
status = get_assign_msg (i, &assign_msg_array[i]);
status != 0)
printf("Assign message %d not found.\n", i);
}
get_param_by_name (supplementary)
The get_param_by_name function retrieves the value of the parameter that corresponds
to the parameter name requested.
#include <stdlibh>
short get_max_assign_msg_ordinal(void);
#include <stdlibh>
short get_param_by_name(char *param_name,
char *param_value,
short max_len);