slight change for contains return type in C