On Thu, Nov 25, 2004 at 01:38:20PM +0100, MagerValp wrote: > OK. Since _scanf.c has been written, is the wrapper function all that > is missing? And from reading the source I don't see where ungetc is > needed. I've had a look at _scanf before answering your mail. It will need a few minor changes in the indesc structure to make it suitable for use with scanf. Currently, the indesc structure contains a buffer, so _scanf can look at a character, and increase the index only if it can make use of it. That is no longer possible when working with files. Instead, the indesc structure will need a user data pointer and two functions get and unget. This is where the ungetc function is needed. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Thu Nov 25 13:43:49 2004
This archive was generated by hypermail 2.1.8 : 2004-11-25 13:43:59 CET