MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / test_sub_list

Function test_sub_list

test/test.c:787–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785}
786
787static int test_sub_list( char ** list, int pos )
788{
789 int i;
790
791 if ( list == NULL || pos == 0 )
792 return 0;
793
794 if ( list[0] == NULL && pos == 1 )
795 return 1;
796
797 for ( i = 0; list[i] != NULL; i++ )
798 {
799 int idx = strtol( list[i], NULL, 0 );
800 if ( idx == pos )
801 return 1;
802 }
803 return 0;
804}
805
806void write_chapter_names(hb_dict_t *job_dict, const char *marker_file)
807{

Callers 2

add_subFunction · 0.85
PrepareJobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected