Callback (computer programming): Difference between revisions

Content deleted Content added
Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.1
Made the random function actually work, as the function did not set a seed value before running the example code
Line 56:
/* Here we call PrintTwoNumbers() with three different callbacks. */
int main(void) {
time_t t;
srand((unsigned)time(&t)); // Init seed for random function
PrintTwoNumbers(&rand);
PrintTwoNumbers(&overNineThousand);