• 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: Rustam Muginov <email@hidden>
  • Date: Fri, 29 Aug 2003 18:33:38 +0400

I am not sure this is exactly what you need, but how about using function
ungetc?

int ungetc( int c, FILE *f );

This function could put at least one character back to the file stream.


On 8/29/03 6:06 PM, "David Thorp" <email@hidden> wrote:

> Greetings...
>
> I wonder if any of you could help me on this one please. Thanks again
> to everyone for all the help in the past. This one's pretty simple I
> think...
>
> 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?
_______________________________________________
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.

  • Follow-Ups:
    • Re: another simple C question please...
      • From: David Thorp <email@hidden>
References: 
 >another simple C question please... (From: David Thorp <email@hidden>)

  • Prev by Date: another simple C question please...
  • Next by Date: Re: another simple C question please...
  • Previous by thread: another simple C question please...
  • Next by thread: Re: another simple C question please...
  • Index(es):
    • Date
    • Thread