diff options
Diffstat (limited to 'Modules/CheckVariableExists.c')
-rw-r--r-- | Modules/CheckVariableExists.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/Modules/CheckVariableExists.c b/Modules/CheckVariableExists.c index 752f6e4..6e94877 100644 --- a/Modules/CheckVariableExists.c +++ b/Modules/CheckVariableExists.c @@ -3,18 +3,22 @@ extern int CHECK_VARIABLE_EXISTS; #ifdef __CLASSIC_C__ -int main(){ +int main() +{ int ac; - char*av[]; + char* av[]; #else -int main(int ac, char*av[]){ +int main(int ac, char* av[]) +{ #endif - if(ac > 1000){return *av[0];} + if (ac > 1000) { + return *av[0]; + } return CHECK_VARIABLE_EXISTS; } -#else /* CHECK_VARIABLE_EXISTS */ +#else /* CHECK_VARIABLE_EXISTS */ -# error "CHECK_VARIABLE_EXISTS has to specify the variable" +#error "CHECK_VARIABLE_EXISTS has to specify the variable" #endif /* CHECK_VARIABLE_EXISTS */ |