とりあえず
char * section = new char[strlen(str)];
unsigned position;
sscanf(str, "%[^<>]%n", section, & position);
とでもしとけ。