sprintf is it safe to use?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Daniel Martelli
le 3 Sep 2020
Réponse apportée : Bruno Luong
le 3 Sep 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 commentaires
Réponse acceptée
Bruno Luong
le 3 Sep 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.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Entering Commands dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!