retrieves the error/cause code of a failure cc_CauseValue( )
69
{int reason;
char *msg;
reason = cc_CauseValue(handle);
cc_ResultMsg(handle,reason,&msg);
printf("reason = %x - %s\n",reason,msg);
}
!
! !
!
Errors
The cc_CauseValue( ) function returns -1 when there is no error/cause code
available for the specified line device. Error codes are defined in the files ccerr.h,
isdnerr.h, and isdncmd.h.
!
! !
!
See Also
cc_ResultMsg( )