#include #include #include int main(int argc, char *argv[]){ int fir; //badly named loop variable char *in
argv is an array of char*. The size of this array is argc. You should pass an element of this array to strlen.
argv
char*
argc
strlen