Compiler gets warnings when using strptime function (C)

前端 未结 1 1442
再見小時候
再見小時候 2021-01-04 19:24

Typing man strptime it sais that this function needs to have declared _XOPEN_SOURCE and included time.h header. I did it. But, when I try to compile my code I g

相关标签:
1条回答
  • 2021-01-04 20:07

    I've found that I needed to define __USE_XOPEN and also _GNU_SOURCE to get it to be happy.

    0 讨论(0)
提交回复
热议问题