Thread: __getc in DJGPP

  1. #1
    Registered User
    Join Date
    Aug 2001

    __getc in DJGPP

    What's this mystic __getc() that I see in libc's source ( ) all the time? I can't find sources for that (and not really that anxious to download extra 20 megs). I guess that the prototype is something like:
    char __getc(FILE *)

    kooma -

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    getc is a standard function, the prototype is int getc ( FILE * stream );
    Most compilers will have two ways to call a function. Normally, such as getc and with leading underscores, such as __getc. I don't recall the reason for that right now, but the two are equivalent. The former is preferred though because I believe the latter isn't as portable, the call is implementation defined.

    I could very well be wrong, my memory on this point isn't too good.

    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GUI in DJGPP
    By bakia in forum C Programming
    Replies: 2
    Last Post: 05-20-2005, 12:29 AM
  2. Wav edit programmation for dos with DJGPP
    By sprudhom in forum A Brief History of
    Replies: 1
    Last Post: 07-17-2003, 07:35 AM
  3. DJGPP project problems
    By VirtualAce in forum A Brief History of
    Replies: 4
    Last Post: 06-08-2002, 07:16 PM
  4. DJGPP assembly syntax ills...
    By VirtualAce in forum A Brief History of
    Replies: 5
    Last Post: 11-11-2001, 02:54 AM
  5. DJGPP help needed
    By dune911 in forum C++ Programming
    Replies: 6
    Last Post: 09-15-2001, 04:56 PM