How to determine the size of a string in C, or at least ensuring that it doesn't exceed a maximum number of bytes?

前端 未结 0 1821
谎友^
谎友^ 2021-02-02 14:19

Is it possible to determine the size in bytes of a string in C?

I\'m trying to ensure that JSON strings built in C do not exceed a 1 MB size limit before passing them to

相关标签:
回答
  • 消灭零回复
提交回复
热议问题