sprintf is it safe to use?

1 回表示 (過去 30 日間)
Daniel Martelli
Daniel Martelli 2020 年 9 月 3 日
回答済み: Bruno Luong 2020 年 9 月 3 日
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 Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by