Search:

Type: Posts; User: brabo

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,647

    ah yes, it idd solved it. but i now understand...

    ah yes, it idd solved it. but i now understand why the move of fclose resolved it.
    thank you for your explanation gwarf420.
  2. Replies
    10
    Views
    1,647

    any non-existent filename gives the segmentation...

    any non-existent filename gives the segmentation fault error.
    the output is as shown in my first post.

    Could not open file
    [1] 13302 segmentation fault (core dumped)
  3. Replies
    10
    Views
    1,647

    please bear with me. why was the file not opened...

    please bear with me.
    why was the file not opened correctly and how did moving up fclose() solve that?

    grtz,
    brabo.
  4. Replies
    10
    Views
    1,647

    is that because it was outside the curly brackets...

    is that because it was outside the curly brackets in which the variable 'file was declared?

    grtz,
    brabo
  5. Replies
    10
    Views
    1,647

    problem with sample program

    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...
Results 1 to 5 of 5