Thread: a question re: Streams

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    12

    Question a question re: Streams

    int fgetc(FILE *);
    int fputc(int c, FILE *);

    They are similar to getc() and putc() but not identical - why?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    getc and putc are generally implemented as macros while fgetc and fputc are functions.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. another do while question
    By kbpsu in forum C++ Programming
    Replies: 3
    Last Post: 03-23-2009, 12:14 PM
  2. dumb question about streams
    By terracota in forum C++ Programming
    Replies: 7
    Last Post: 07-06-2004, 12:14 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 01:47 AM