MCPcopy Create free account
hub / github.com/boostorg/build / list_is_sublist

Function list_is_sublist

v2/engine/lists.c:302–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302int list_is_sublist( LIST * sub, LIST * l )
303{
304 LISTITER iter = list_begin( sub );
305 LISTITER const end = list_end( sub );
306 for ( ; iter != end; iter = list_next( iter ) )
307 if ( !list_in( l, list_item( iter ) ) )
308 return 0;
309 return 1;
310}
311
312/*
313 * list_print() - print a list of strings to stdout

Callers 1

function_runFunction · 0.85

Calls 3

list_beginFunction · 0.85
list_endFunction · 0.85
list_inFunction · 0.85

Tested by

no test coverage detected