What use is there for 'ends' these days?

后端 未结 2 1316
长情又很酷
长情又很酷 2021-01-17 10:15

I came across a subtle bug a couple of days ago where the code looked something like this:

ostringstream ss;
int anInt( 7 );

ss << anInt << \"HA         


        
2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-17 10:56

    There are some APIs that expect a "string array" with multiple zero terminated strings, a double zero to mark the end. Raymond Chang just recently blogged about it, most of all to demonstrate how often that this gets fumbled.

提交回复
热议问题