Rev 9156 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9156 | Rev 9165 | ||
---|---|---|---|
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 | - | ||
27 | else{ |
26 | |
28 | if(stream->mode & _FILEMODE_R){ |
27 | if(stream->mode & _FILEMODE_R){ |
29 | if(!stream->__ungetc_emu_buff){ |
28 | if(!stream->__ungetc_emu_buff){ |
30 | ((char*) ptr)[0]=(char)stream->__ungetc_emu_buff; |
29 | ((char*) ptr)[0]=(char)stream->__ungetc_emu_buff; |
31 | //debug_printf("Ungetc: %x\n", ((char*) ptr)[0]); |
30 | //debug_printf("Ungetc: %x\n", ((char*) ptr)[0]); |
Line 40... | Line 39... | ||
40 | return 0; |
39 | return 0; |
41 | } |
40 | } |
42 | } |
41 | } |
43 | stream->position+=bytes_read; |
42 | stream->position+=bytes_read; |
44 | } |
43 | } |
45 | } |
- | |
46 | return bytes_read/size; |
44 | return bytes_read/size; |
47 | }=0){ |
45 | }=0){ |