Skip to content

Commit

Permalink
Merge pull request #1 from LiquidFox1776/LiquidFox1776-true-creation
Browse files Browse the repository at this point in the history
Create true.c
  • Loading branch information
LiquidFox1776 authored Jun 6, 2018
2 parents b112e46 + d224e82 commit e1708ff
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions commands/true.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*******************************************
* DOS Coreutils true Command Source File *
*******************************************/

#include "../dosc.h"

int main(int argc, char *argv[])
{
#ifdef HELP
if(!strcmp(argv[1], "--help"))
{
puts(STRING_TRUE_RETURN_TRUE);
puts(" true");
puts(" true --help|--version\r\n");
return EXIT_SUCCESS;
}
#endif

#ifdef VERSION
if(!strcmp(argv[1], "--version"))
{
version();
return EXIT_SUCCESS;
}
#endif



return EXIT_SUCCESS;
}

0 comments on commit e1708ff

Please sign in to comment.