Find the answer to your Linux question:
Results 1 to 3 of 3
c programmers magazine subscribe here and post a c program, its worth subscribing to if you just li- ke to get an occasionally useful c pr - orgram in the ...
  1. #1
    Just Joined! errigour's Avatar
    Join Date
    Jan 2009
    Posts
    51

    C Programmers Magazine

    c programmers magazine
    subscribe here and post a c program,
    its worth subscribing to if you just li-
    ke to get an occasionally useful c pr-
    orgram in the mail here or there or li-
    ke to contribute sometimes when you
    think up something small and useful.

    Mailing list options (more info)
    - Click "Options > Subscribe via email" to subscribe to this mailing list;
    - Click "Options > Post by email..." to get the email address of this mailing list;
    - You can post messages via email or through the forum interface below;
    - All web posts and emails are archived here.

    Nabble - c programmers magazine forum
    I could use some friends if anyone wants to try out c programmers magazine.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    Code:
    #include <stdio.h>
    void main()
    {      File *fopen(), *fp;
           int c;
           fp = fopen("filename.txt","r");
           c = getc(fp);
           while (c != EOF)
           {putchar(c);
            c = getc(fp);
           }
           fclose(fp);
    }
    couple of feedback(though it's negative) from me , which will help your magazine
    I tried your program,It throws lot of syntax errors!!!

    Code:
    File
    is it File or FILE ?

    Code:
    File *fopen(),
    is this needed?

    Please try and compile the programs yourself and post them if you are satisfied with the output.
    All the best
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  3. #3
    Just Joined! errigour's Avatar
    Join Date
    Jan 2009
    Posts
    51

    File

    Its FILE and I fixed it on in the C Programmers Magazine. thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •