• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: another simple C question please...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: another simple C question please...


  • Subject: Re: another simple C question please...
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Fri, 29 Aug 2003 15:38:30 +0100

On Friday, August 29, 2003, at 03:06 pm, David Thorp wrote:

In short, is there any way, before reading in a character from a file
(using something like: ch = fgetc (theFile)), to instead find out what
the next character is, before actually reading it and moving the file
position indicator along one?

Try something like:

ch = fgetc (theFile);
ungetc (ch, theFile);

(See "man ungetc")

Kind regards,

Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >another simple C question please... (From: David Thorp <email@hidden>)

  • Prev by Date: Re: another simple C question please...
  • Next by Date: return two values at once from C function?
  • Previous by thread: Re: another simple C question please...
  • Next by thread: Re: another simple C question please...
  • Index(es):
    • Date
    • Thread