#include "patprep.h" const int count = 5 * 1000 * 1000 * 1000; void main() { for (int i = 0; i <= count; i++) { patprep("/foo/bar/whatever[0-9]*"); } }