#include <iostream>
#include <sstream>
#include <string>
int main() {
char c_str[] = "Name = \"1234\"\r\n";
std::string str = c_str;
std::istringstream stream(str);
std::string field;
std::getline(stream, field, '"'); // skip to "
std::getline(stream, field, '"'); // read
std::cout << field << std::endl; // 1234
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPHN0cmluZz4KCmludCBtYWluKCkgewoJCgljaGFyIGNfc3RyW10gPSAiTmFtZSA9IFwiMTIzNFwiXHJcbiI7CgkKCXN0ZDo6c3RyaW5nIHN0ciA9IGNfc3RyOwoJc3RkOjppc3RyaW5nc3RyZWFtIHN0cmVhbShzdHIpOwoJCglzdGQ6OnN0cmluZyBmaWVsZDsKCXN0ZDo6Z2V0bGluZShzdHJlYW0sIGZpZWxkLCAnIicpOyAvLyBza2lwIHRvICIKCXN0ZDo6Z2V0bGluZShzdHJlYW0sIGZpZWxkLCAnIicpOyAvLyByZWFkCglzdGQ6OmNvdXQgPDwgZmllbGQgPDwgc3RkOjplbmRsOyAvLyAxMjM0CgkKCXJldHVybiAwOwp9