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

Function greet

src/lecture/cpp/cpp_lec02.cpp:54–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void greet(Greeter *greeter)
55{
56 char name[100];
57 printf("What is your name? ");
58 fgets(name, 100, stdin);
59 name[strlen(name)-1] = '\0';
60 greeter->sayHello(name);
61}
62
63/* This exists just so that the compiler/linker needs to include
64 * CommandExecutor's code, since otherwise it would be unused. */

Callers 1

mainFunction · 0.85

Calls 1

sayHelloMethod · 0.80

Tested by

no test coverage detected