| 2 | #include <stdlib.h> |
| 3 | |
| 4 | int main() |
| 5 | { |
| 6 | char buffer[20]; |
| 7 | // Disable the buffering so we can see the output immediately |
| 8 | setvbuf(stdout, NULL, _IONBF, 0); |
| 9 | printf("Please type an integer:\n"); |
| 10 | fgets(buffer, sizeof(buffer), stdin); |
| 11 | int result = atoi(buffer); |
| 12 | printf("You typed: %d\n", result); |
| 13 | return 0; |
| 14 | } |
nothing calls this directly
no outgoing calls
no test coverage detected