Azzera filtri
Azzera filtri

sprintf is it safe to use?

1 visualizzazione (ultimi 30 giorni)
Daniel Martelli
Daniel Martelli il 3 Set 2020
Risposto: Bruno Luong il 3 Set 2020
Is it safe to use the code sprintf? because i was reading something and it said that sprintf is not safe to use
  4 Commenti
KSSV
KSSV il 3 Set 2020
Share the link where there was a warning.
per isakson
per isakson il 3 Set 2020
"sprintf is not safe to use" in what programming language?

Accedi per commentare.

Risposta accettata

Bruno Luong
Bruno Luong il 3 Set 2020
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.

Più risposte (0)

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by