libs/xxinterface/src/xxinterface.cxx
// This will get the license_id for a given string id
This will get the license_id for a given string id
This will get the license_id for a given string id
static int _gli(const char *s, license_id *id)
{
  int retval = LIC_FAIL;
  if ( s && id )
    {
      for ( int i = 0, done = 0; i < LIC_NUM_LICENSES && ! done; i++ )
        {
          char sid[4];
          strcpy(sid, license_data[i].code);
          unscramble(sid);
          if ( strcmp(sid, s) == 0 )
            {
              *id    = license_data[i].id;
              done   = 1;
              retval = LIC_SUCCESS;
            }
        }
    }
  return retval;
}
static int _gli ( const char * s , license_id * id ) { int retval = LIC_FAIL ; if ( s && id ) { for ( int i = 0 , done = 0 ; i < LIC_NUM_LICENSES && ! done ; i ++ ) { char sid [ 4 ] ; strcpy ( sid , license_data [ i ] . code ) ; unscramble ( sid ) ; if ( strcmp ( sid , s ) == 0 ) { * id = license_data [ i ] . id ; done = 1 ; retval = LIC_SUCCESS ; } } } return retval ; }
This will get the license_id for a given string id
This will get the license_id for a given string id