__getc in DJGPP

This is a discussion on __getc in DJGPP within the C Programming forums, part of the General Programming Boards category; What's this mystic __getc() that I see in libc's source (djlsr203.zip ) all the time? I can't find sources for ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    129

    __getc in DJGPP

    What's this mystic __getc() that I see in libc's source (djlsr203.zip ) 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 *)

    Anyone?
    kooma - t.h@iki.fi

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    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.

    -Prelude
    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 Cprogramming.com
    Replies: 1
    Last Post: 07-17-2003, 07:35 AM
  3. DJGPP project problems
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 06-08-2002, 07:16 PM
  4. DJGPP assembly syntax ills...
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-11-2001, 01:54 AM
  5. DJGPP help needed
    By dune911 in forum C++ Programming
    Replies: 6
    Last Post: 09-15-2001, 04:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21