Hello again
Is possible to know how many args has been introduced by the user, without making any functions to do that, simple using my code:
Code:
char *s ;
int n = 0, q = 0 ;
int x,y;
char *c,*nome_f,e;
c = (char*) malloc(25 * sizeof(char));
nome_f = (char*) malloc(25 * sizeof(char));
read_history("historico");
using_history();
do {
s = readline("Letrorium>");
if ( *s != 'q' ) {
/*AT THIS POINT I WANT KNOW HOW MANY ARGS HAS BEEN INTRODUCED (2, 3 ,4 MORE... SEPARATED BY SPACES);
add_history(s);
n++;
Thanks in advanced