필터 지우기
필터 지우기

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 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