Ovis_Transmission_Reception_Nth()
Abstract
Returns the n-th reception associated with the transmission.
Syntax
Ovis_Transmission_Reception_Nth (xmit_ptr, index)
| Argument | Type | Description |
|---|---|---|
xmit_ptr |
OvisT_Transmission * |
Transmission |
index |
unsigned int |
Reception index number |
Return Type
OvisT_Reception *
Pointer to the reception
Header
ovis_transmission_anim.h
Details
This function returns the n-th reception associated with the transmission.
Example
unsigned int count, i;
OvisT_Transmission * transmission;
OvisT_Reception * reception;
/* Transmission set up at some point */
count = Ovis_Transmission_Reception_Count (transmission);
for (i = 0; i < count; i++)
{
reception = Ovis_Transmission_Reception_Nth (transmission, i);
/* Do something with i'th reception */
}
Errors
- Transmission is NIL.
Reference
- Use the function
Ovis_Transmission_Reception_Count()to obtain the number of receptions associated with a transmission.