Saltar al contenido
onsuggest
Iniciar sesión
Artículo en

Alternative to strcpy() and strncpy() in C

Fuente: /dev/null ·

Brief Intro I have seen some people said that strcpy() can be dangerous to use. At that time, I am not sure why strcpy() can be dangerous, but now I have found a simple replication of why strcpy() can be dangerous. This is also the case with strncpy(), which does not guarantee a null terminated string. At the time of writing this blog post, I am still getting started learning C programming language.

Atajos de teclado

Descubrimiento anterior
←P
Siguiente descubrimiento
→N
Me gusta
L
No es para mí
X
Guardar
S
Mostrar esta ayuda
?
Cerrar
Esc

Los atajos funcionan en la página de descubrimientos.