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 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!