MCPcopy Create free account
hub / github.com/3rdparty/libprocess / main

Function main

src/tests/test_echo.cpp:20–28  ·  view source on GitHub ↗

This program mimic's the `echo` binary found on POSIX systems. It exists because the `echo` equivalent on Windows is a command-prompt built-in, and does not behave the same as a native binary. It prints out `argv` (except the 0th argument) separated by spaces.

Source from the content-addressed store, hash-verified

18//
19// It prints out `argv` (except the 0th argument) separated by spaces.
20int main(int argc, char** argv)
21{
22 for (int i = 1; i < argc; i++) {
23 printf("%s ", argv[i]);
24 }
25 printf("\n");
26
27 return 0;
28}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected