sub_get_serial_number

Top  Previous  Next
Got to SUB-20 page

Synopsis

int sub_get_serial_number( sub_handle hndl, char *buf, int sz)

 

Get serial number string descriptor

Parameters

*buf - buffer to store descriptor

sz - buffer size

Return value

On success function returns string descriptor size. Otherwise negative number.

Example

if( sub_get_serial_number(hndl, buf, sizeof(buf)) >= 0 )

  printf( "Serial Number : %s\n", buf );

else

{

  /* Error */

}