MCPcopy Create free account
hub / github.com/RPISEC/MBE / main

Function main

src/lecture/cpp/cpp_lec02.cpp:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35void doNothing();
36
37int main(int argc, char **argv)
38{
39 Greeter g;
40 char buf[64];
41 printf("You must be 18 years or older to use this program. Are you? ");
42
43 doNothing();
44
45 gets(buf); /* OVERFLOW */
46 if (strcmp(buf, "y") == 0) {
47 greet(&g);
48 return 0;
49 } else {
50 return 1;
51 }
52}
53
54void greet(Greeter *greeter)
55{

Callers

nothing calls this directly

Calls 2

doNothingFunction · 0.85
greetFunction · 0.85

Tested by

no test coverage detected