if (strcmp(argv[1], "loop") == 0) { i = 0; int arvo; sscanf(argv[2], "%i", arvo); while (i < arvo) { printf("%s\n", argv[3]); } }