__isoc99_scanf and scanf

后端 未结 2 1411
鱼传尺愫
鱼传尺愫 2021-02-19 23:39

I was studying various compiler option in GCC and observing changes when I made changes in the standard to be used.

$ gcc Q1.c -Wall -save-temps -o Q1
$ vi Q1.s
         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-20 00:19

    scanf(3) manual mentions several type modifiers characters introduced in c99:

    j      As for h, but the next pointer is a pointer to an intmax_t or a uintmax_t.  This modifier was introduced in C99
    t      As for h, but the next pointer is a pointer to a ptrdiff_t.  This modifier was introduced in C99.
    z      As for h, but the next pointer is a pointer to a size_t.  This modifier was introduced in C99.
    a      (C99) Equivalent to f
    

提交回复
热议问题