Why does NSLog sometimes print out octal for ucode characters?

后端 未结 2 830
庸人自扰
庸人自扰 2021-02-20 04:07

I\'m running the following code in the viewDidLoad function of a vanilla iPad single view app:

/*
 *  Print the string.  A lot.
 */
for (int i = 0; i < 300; i         


        
2条回答
  •  失恋的感觉
    2021-02-20 04:43

    A workaround, in your loop, put a "fflush(stderr);" after the second NSLog statement; This will force stderr to commit and write the buffer before continuing.

提交回复
热议问题