Re: another simple C question please...
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.