int main () { char* cptr = "String 1"; int b[2] = {5,8}; b[0] = shr2(12); /* begin part two */ b[1] = shr2(17); /* middle part two */ b[0] = 6; b[1] = 9; /* generic statement, end part two */ printf ("message 1\n"); /* printf one */ printf ("message 2\n"); /* printf two */ printf ("message 3\n"); /* printf three */ sleep (0); /* sleep one */ sleep (0); /* sleep two */ sleep (0); /* sleep three */ return 0; /* end part one */ } /* end of main */
int main () { char* cptr = "String 1"; int b[2] = {5,8}; /* Call these functions once before we start testing so that they get resolved by the dynamic loader. If the system has debug info for the dynamic loader installed, reverse-stepping for the first call will otherwise stop in the dynamic loader, which is not what we want. */ shr1 (""); shr2 (0); b[0] = shr2(12); /* begin part two */ b[1] = shr2(17); /* middle part two */ b[0] = 6; b[1] = 9; /* generic statement, end part two */ shr1 ("message 1\n"); /* shr1 one */ shr1 ("message 2\n"); /* shr1 two */ shr1 ("message 3\n"); /* shr1 three */ return 0; /* end part one */ } /* end of main */