Programming Guide |
Returns the transaction manager event name for the specified event number
#include <tmusubs.h>char *sm_tm_event_name(int event_number);
event_number
- One of the request and event numbers defined in
tmusubs.h
.
- · A pointer to a string that contains the name of the specified event number.
- · A string that contains the event number if the number does not correspond to one of the events
sm_tm_event_name
returns the event name corresponding to the specified event number. Because this function stores the returned data in a pool of buffers that it shares with other functions, copy or process this data immediately.
# JPL Procedure called as an event function that displays
# each event name as it is processed.proc getname(event)
vars retname
retname = sm_tm_event_name(event)
msg_emsg "Event name is " retname
return TM_PROCEED