MCPcopy Create free account
hub / github.com/Vector35/debugger / main

Function main

test/src/read_input.c:4–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <stdlib.h>
3
4int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected