[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [RFC] Add vfprintf_P() and vfscanf_P() functions.
From: |
Theodore A. Roth |
Subject: |
[avr-libc-dev] [RFC] Add vfprintf_P() and vfscanf_P() functions. |
Date: |
Thu, 16 Oct 2003 11:39:23 -0700 (PDT) |
The attached patch adds the vfprintf_P() and vfscanf_P() functions.
These are simply wrappers around the vfprintf() and vfscanf()
functions respectively.
Without these functions, it is not possible to write functions like
the following:
-- begin example --
void
ap_out_screen (FILE *fp_out, int row, int col, const char * PROGMEM fmt, ...)
{
va_list ap;
ap_cursor_pos (fp_out, row, col);
va_start (ap, fmt);
vfprintf_P (fp_out, fmt, ap);
va_end (ap);
}
-- end example --
Any objections to this addition?
I think this is suitable for inclusion on the 1.0 branch too since it
only extends the API. Any objections to that?
Ted Roth
avr-libc-vfprintf_p.diff
Description: Text document
- [avr-libc-dev] [RFC] Add vfprintf_P() and vfscanf_P() functions.,
Theodore A. Roth <=