Skip to content

code-check/cli-template-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published