Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 647 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 647 Bytes

Command line application template for C

Implement CLI application by editing main.c.
You may add new files to keep your code clean, if it is allowed in your challenge.

How to get input parameters

You can get arguments with ordinary C way, using int argc and char * argv[].

int main(int argc, char * argv[])
{
  // code to run
  return 0;
}

How to output result

You can use printf.

  printf ("argv[%i]: %s\n", i, argv[i]);

How to compile

To compile, we are using clang gcc command.

If you want to change compile option or etc, please edit makefile.