stops the trace cc_StopTrace( )
275
Name:
int cc_StopTrace(boarddev)
Inputs:
LINEDEV boarddev
• board device handle
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
System control
Mode:
asynchronous
Technology:
BRI/2; BRI/SC; PRI (all protocols)
!
! !
!
Description
The cc_StopTrace( ) function stops the trace that was started using the
cc_StartTrace( ) function, discards the trace information, and closes the file.
Parameter Description
boarddev:
The line device handle of the D channel board.
!
! !
!
Cautions
None
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include “srllib.h”
#include “dtilib.h”
#include “cclib.h”
void main()
{
LINEDEV brddevhdl; /* device handle for D channel */
LINEDEV devhdl = 0;
CRN crn = 0;
char *devname = “dtiB1”;
.
.
.
if ( cc_Open(brddevhdl,devname,0)<0)
exit(1);
if ( cc_Open( &devhdl, devname,0)<0)
{
printf(“Error opening device: errno = %d\n”, errno);
exit(1);