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

Function main

test/src/helloworld.c:6–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <unistd.h>
5
6int main(int argc, char **argv)
7{
8 int i;
9 char path[1024] = {};
10
11 printf("Hello, world!\n");
12 if (getcwd(path, sizeof(path)))
13 {
14 printf("cwd: %s\n", path);
15 }
16 else
17 {
18 printf("fail to get cwd\n");
19 }
20
21 printf("argc: %d\n", argc);
22 for(i=0; i<argc; ++i)
23 printf("argv[%d]: %s\n", i, argv[i]);
24
25 return 10;
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected