apps/avifenc.c
// Returns the count of uint32_t (up to 8)
Returns the count of uint32_t (up to 8)
Returns the count of uint32_t ( up to 8 )
static int parseU32List(uint32_t output[8], const char * arg)
{
    char buffer[128];
    strncpy(buffer, arg, 127);
    buffer[127] = 0;
    int index = 0;
    char * token = strtok(buffer, ",");
    while (token != NULL) {
        output[index] = (uint32_t)atoi(token);
        ++index;
        if (index >= 8) {
            break;
        }
        token = strtok(NULL, ",");
    }
    return index;
}
static int parseU32List ( uint32_t output [ 8 ] , const char * arg ) { char buffer [ 128 ] ; strncpy ( buffer , arg , 127 ) ; buffer [ 127 ] = 0 ; int index = 0 ; char * token = strtok ( buffer , " " ) ; while ( token != NULL ) { output [ index ] = ( uint32_t ) atoi ( token ) ; ++ index ; if ( index >= 8 ) { break ; } token = strtok ( NULL , " " ) ; } return index ; }
Returns the count of uint32_t (up to 8)
Returns the count of uint32_t ( up to 8 )