sub_get_product_id

Top  Previous  Next
Got to SUB-20 page

Synopsis

int sub_get_product_id( sub_handle hndl, char *buf, int sz);

 

Get product ID 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_product_id(hndl, buf, sizeof(buf)) >= 0 )

  printf( "Product ID : %s\n", buf );

else

{

  /* Error */

}