Rev 9165 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9165 | Rev 9230 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | con_init(); |
22 | con_init(); |
23 | con_gets((char*)ptr, bytes_count+1); |
23 | con_gets((char*)ptr, bytes_count+1); |
24 | return nmemb; |
24 | return nmemb; |
25 | } |
25 | } |
Line 26... | Line 26... | ||
26 | 26 | ||
27 | if(stream->mode & _FILEMODE_R){ |
27 | if(stream->mode != _FILEMODE_W && stream->mode != _FILEMODE_A){ |
28 | if(!stream->__ungetc_emu_buff){ |
28 | if(!stream->__ungetc_emu_buff){ |
29 | ((char*) ptr)[0]=(char)stream->__ungetc_emu_buff; |
29 | ((char*) ptr)[0]=(char)stream->__ungetc_emu_buff; |
30 | //debug_printf("Ungetc: %x\n", ((char*) ptr)[0]); |
30 | //debug_printf("Ungetc: %x\n", ((char*) ptr)[0]); |
31 | } |
31 | } |