src/siri/db/access.c
/*
 * Returns access bit by string.
 */
Returns access bit by string.
Returns access bit by string .
uint32_t siridb_access_from_strn(const char * str, size_t n)
{
    for (int i = 0; i < ACCESS_SIZE; i++)
    {
        if (strncmp(access_map[i].repr, str, n) == 0)
        {
            return access_map[i].access_bit;
        }
    }
    return 0;
}
uint32_t siridb_access_from_strn ( const char * str , size_t n ) { for ( int i = 0 ; i < ACCESS_SIZE ; i ++ ) { if ( strncmp ( access_map [ i ] . repr , str , n ) == 0 ) { return access_map [ i ] . access_bit ; } } return 0 ; }
Returns access bit by string.
Returns access bit by string .