/[avr-libc]/avr-libc/libc/stdio/fputs_p.c
ViewVC logotype

Diff of /avr-libc/libc/stdio/fputs_p.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by joerg_wunsch, Wed Jul 21 22:11:59 2004 UTC revision 1.5 by joerg_wunsch, Tue Sep 6 18:49:15 2005 UTC
# Line 48  fputs_P(const char *str, FILE *stream) Line 48  fputs_P(const char *str, FILE *stream)
48           * macro, so it could evaluate its argument more than once.           * macro, so it could evaluate its argument more than once.
49           */           */
50          while ((c = pgm_read_byte(str)) != '\0') {          while ((c = pgm_read_byte(str)) != '\0') {
51                  if (stream->put(c) != 0)                  if (stream->put(c, stream) != 0)
52                          rv = EOF;                          rv = EOF;
53                  str++;                  str++;
54          }          }

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26