Re: [v2 3/6] msvcirt: Implement istream::operator>> for strings.
2 Aug
2016
2 Aug
'16
8:16 a.m.
On 08/02/16 13:37, Iván Matellanes wrote:
@@ -3514,7 +3514,28 @@ istream* __thiscall istream_read_char(istream *this, char *ch) DEFINE_THISCALL_WRAPPER(istream_read_str, 8) istream* __thiscall istream_read_str(istream *this, char *str) { - FIXME("(%p %p) stub\n", this, str); + ios *base = istream_get_ios(this); + int ch, count = 0; + + TRACE("(%p %p)\n", this, str); + + if (istream_ipfx(this, 0)) { + for (ch = streambuf_sgetc(base->sb); + str && count < (unsigned int) base->width - 1 && !isspace(ch); + ch = streambuf_snextc(base->sb)) { streambuf_sgetc shouldn't be called if str == NULL.
Thanks, Piotr
3418
Age (days ago)
3418
Last active (days ago)
0 comments
1 participants
participants (1)
-
Piotr Caban