sprintf is it safe to use?

1 次查看(过去 30 天)
Is it safe to use the code sprintf? because i was reading something and it said that sprintf is not safe to use
  4 个评论
KSSV
KSSV 2020-9-3
Share the link where there was a warning.
per isakson
per isakson 2020-9-3
"sprintf is not safe to use" in what programming language?

请先登录,再进行评论。

采纳的回答

Bruno Luong
Bruno Luong 2020-9-3
It's not safe for C where strings are 0 terminated.
But for MATLAB the length is inside an internal (mxArray) structure, so it's totally safe.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by