
Description | Example | Errors | See Also
Name: |
char * ATDV_NAMEP(dev) | |
Inputs: |
int dev |
|
Returns: |
pointer to string | |
Includes: |
srllib.h | |
Category: |
standard attribute | |
The ATDV_NAMEP( ) function returns a pointer to an ASCIIZ string that specifies a device name, used to open the device.
An example of a device name is:
where:
The pointer to this string remains valid only while the device is open.
Parameter |
Description |
dev |
Device handle, the handle returned by the technology-specific xx_open( ). |
#include <windows.h>
#include <srllib.h>
#include <dxxxlib.h>
main()
{
int dxxxdev;
/* Open a dxxx channel device */
if(( dxxxdev = dx_open( "dxxxB1C1", 0 )) == -1 ){
printf( "Error: cannot open device\n" );
exit( 1 );
}
printf( "Device name is %s\n", ATDV_NAMEP( dxxxdev ));
}
This function returns a pointer to the string "Unknown device" if an invalid device handle is specified in dev.
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation