cc_Open( ) opens a device
178
int callfail(CRN crn)
{LINEDEV ld;
cc_CRN2LineDev(crn,&ld);
procdevfail(ld);
}
int procdevfail(LINEDEV handle)
{int reason;
char *msg;
reason = cc_CauseValue(handle);
cc_ResultMsg(handle,reason,&msg);
printf(reason = %x - %s\n,reason,msg);
}
!
! !
!
Errors
If the function returns < 0 to indicate failure, check errno.h to retrieve the reason
for the failure.
Typically, a < 0 return code for the cc_Open( ) function indicates that the function
reference (the device name) is not valid for the function call.
!
! !
!
See Also
cc_Close( )