Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

strncpy vs. strcpy

Name: Anonymous 2008-08-23 18:46

Both functions are perfectly fine to use as long as they're used correctly, with valid input, in a legible manner.

However, which one would you guys say is easier to misuse? Which one has a greater potential impact when misused in the most typical way? And which one do you see misused more often in real code?

Name: Anonymous 2008-08-23 21:06

$ # The Quine programming language is optimized for the creation of quines.
$ cat test.qne
#!/usr/bin/quine
Hello World!
$ ./test.qne
#!/usr/bin/quine
Hello World!
$ ls -l /usr/bin/quine
lrwxr-xr-x 1 anon anon 8 2008-08-23 21:02 /usr/bin/quine -> /bin/cat
$

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List