blob: fe6974b11a986d7e28622be4dc80ee97bd2d4dc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <stdio.h>
int goodbyes = 0;
void print_hello(void);
int print_goodbye(int reps);
void print_hello(void)
{
fprintf(stdout,"Hello - I'm a DSO!\n");
}
int print_goodbye(int reps)
{
int i = 0;
for (i = 0;i < reps; i++) {
fprintf (stdout, "Goodbye from the DSO! (%d of %d)\n", i+1, reps);
}
goodbyes = reps;
return 0;
}
|