implicit declaration of function itoa is invalid in c99

后端 未结 2 1443
温柔的废话
温柔的废话 2020-12-16 14:41

When I try use the function itoa(), I get the warning:

implicit declaration of function is invalid in c99.

I have

相关标签:
2条回答
  • 2020-12-16 15:25

    The problem is that itoa() isn't a standard function.

    You should take a look at this link which gives you some alternative implementations

    0 讨论(0)
  • 2020-12-16 15:27

    An alternative that is commonly used in place of itoa is sprintf/snprintf. These are part of stdio.h.

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