i have a problem with the example program in the beginners C 'Command Line Arguments' tutorial.
i have the code exactly as is provided on the page. compile with gcc with no errors.
the code works all fine, except when i run it with an unexisting filename, it then displays the message correctly, but gives after that a segmentation fault error:
Could not open file
 13302 segmentation fault (core dumped)
since i'm just beginning with programming, i would like to know what is going wrong here.
if needed, i can paste the code here, but i let it out for now because it's on the site too.
thanx in advance,