stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek" <>
Subject RE: cin under Nanodesktop PSPE
Date Fri, 06 Jun 2008 23:54:31 GMT

pegasus2000 wrote:
>We are working on your library and I can say that it gives already good
>results under PSP. Under PSPE there are troubles, but we are solving
>them. Per esempio, the trouble with io_base:init:init was derived by
>the fact that, under PSPE, the global constructors and destructors
>weren't initialized by the system at startup. A dedicated module under
>PSP does this now. 
>I have another trouble. Consider the following routine:
>I have seen that cin >> *p has a different 
>behaviour that scanf. 
>And, in fact, when I press the ENTER key on
>the virtual keyboard of the PSP, cin doesn't
>transfer the value in *p, and the message
>"I'm here" isn't printed on the screen. 
>Can you say me what is the routine that manages
>cin ? So, I can patch it for nd. 

The object `cin' is of type `std::istream'. The underlying stream buffer
type is `std::filebuf'. At the lowest level the filebuf is going to call
`__rw_fread' which defers to `fread' or `read' to read data from stdin.


View raw message