int omp_get_team_num(void);
Summary The omp_get_team_num routine returns the initial team number of the calling thread.
Binding The binding task set for an omp_get_team_num region is the generating task.
Effect The omp_get_team_num routine returns the initial team number of the calling thread. The initial team number is an integer between 0 and one less than the value returned by omp_get_num_teams(), inclusive. The routine returns 0 if it is called outside of a teams region.