fork download
  1. #include<stdio.h>
  2.  
  3. .......
  4. .......
  5.  
  6. void validateFlags( const char * const flags[], const int const lenght )
  7. {
  8. for(int i = 1; i < lenght ; i++ )
  9. {
  10. for(int j = 0; j < allowedFlagsLenght; j++)
  11. {
  12. printf("Arg input: %s\n, Allowd arg: %s", flags[i], allowedFlags[j]);
  13. }
  14. }
  15. }
  16.  
  17. int main( const int const argc, const char * const argv[] )
  18. {
  19. if( argc > 1 ) validateFlags( argv, argc );
  20. return 0;
  21. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:3:1: error: expected identifier or ‘(’ before ‘...’ token
 .......
 ^~~
prog.c: In function ‘main’:
prog.c:19:18: warning: implicit declaration of function ‘validateFlags’ [-Wimplicit-function-declaration]
   if( argc > 1 ) validateFlags( argv, argc );
                  ^~~~~~~~~~~~~
stdout
Standard output is empty