What does the function below do?
Code:int aMethod ( nodePtr list, int (*compar)(void *, void *) ) { int b = 1; nodePtr o1 = NULL, o2 = NULL; for ( ; list ; list = list->next ) { o1 = list; if ( o2 != NULL && compar(o1->data,o2->data) > 0 ) { b = 0; break; } o2 = o1; } return b; }