What type does the sscanf Modifier

前端 未结 3 995
夕颜
夕颜 2021-01-25 17:22

I have come across some legacy code that has the following type of line:

sscanf(szBuff,\"%Fd %Ff %Fd %Ff\"

Has anyone seeen a modifier like Fd or Ff? If so, wha

3条回答
  •  盖世英雄少女心
    2021-01-25 18:01

    %F is a POSIX (and C99) extension.

    http://pubs.opengroup.org/onlinepubs/007904975/functions/scanf.html

    "The conversion specifiers A, E, F, G, and X are also valid and shall be equivalent to a, e, f, g, and x, respectively."

提交回复
热议问题