I am stuck here , i need some help here , I am trying to read 10 command line arquments ignoring digits and special characters....I have tried
but i found out that it only takes an int....
this is what I have done so far ....
Code:
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#define NB_OF_ARGS
int main(int argc, char **argv) {
if (argc != NB_OF_ARGS + 1) {
printf("10 command line arguments please.\n");
return EXIT_FAILURE;
}
for (int i = 1; i <= NB_OF_ARGS; ++i)
printf(" %s", argv[i]);
putchar('\n');
return EXIT_SUCCESS;
}