Hi,

I think that argc will be 1 if there are no arguments because the application name is inserted as the first argument, so you have to check if argc is bigger than 1.