sprintf is it safe to use?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Daniel Martelli
el 3 de Sept. de 2020
Respondida: Bruno Luong
el 3 de Sept. de 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 comentarios
Respuesta aceptada
Bruno Luong
el 3 de Sept. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!