178 Voice API for Windows Operating Systems Library Reference — November 2003
dx_clrtpt( ) — clear all fields in a DV_TPT structure
!
!!
!Errors
The function will fail and return -1 if IO_EOT is encountered in the tp_type field before the
number of DV_TPT structures specified in size have been cleared.
!
!!
!Example
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
DV_TPT tpt1[2];
DV_TPT tpt2[2];
/* Set up the links in the DV_TPTs */
tpt1[0].
tp_type
= IO_CONT;
tpt1[1].
tp_type
= IO_LINK;
tpt1[1].tp_nextp = &tpt2[0];
tpt2[0].
tp_type
= IO_CONT;
tpt2[1].
tp_type
= IO_EOT;
/* set up the other DV_TPT fields as required for termination */
.
.
/* play a voice file, get digits, etc. */
.
.
/* clear out the DV_TPT structures if required */
dx_clrtpt(&tpt1[0],4)
;
/* now set up the DV_TPT structures for the next play */
.
.
}
!
!!
!See Also
DV_TPT data structure