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

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

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

revision 1.5 by joerg_wunsch, Tue Sep 6 18:49:15 2005 UTC revision 1.6 by joerg_wunsch, Wed Sep 14 19:04:58 2005 UTC
# Line 91  fdevopen(int (*put)(char, FILE *), int ( Line 91  fdevopen(int (*put)(char, FILE *), int (
91          if ((s = calloc(1, sizeof(FILE))) == 0)          if ((s = calloc(1, sizeof(FILE))) == 0)
92                  return 0;                  return 0;
93    
94            s->flags = __SMALLOC;
95    
96          if (get != 0) {          if (get != 0) {
97                  s->get = get;                  s->get = get;
98                  s->flags = __SRD;                  s->flags |= __SRD;
99                  if (stdin == 0)                  if (stdin == 0)
100                          stdin = s;                          stdin = s;
101          }          }

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

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