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

strncpy() vs strncat()

Name: Anonymous 2008-07-05 17:26

Hey /prog/, I've just googled this and it returned a bunch of faggots complaining about buffer overflows.

My question is, as both functions seem to do the same thing, which one would you use?

The man page doesn't leave this clear either, it just says that strcpy zerofills the buffer.

Name: Anonymous 2008-07-08 6:58

>>43
I've taken the liberty of fixing your indentation and highlighting a syntax error:

Woman linda_tarballs = new Woman();
Man anonymous = new Man();

if (linda_tarballs.getVirginity()) {
    anonymous.rape(linda_tarballs, linda_tarballs.getVagina());

    if (linda_tarballs.isbleeding(vagina))
{
        anonymous.rape(linda_tarballs, linda_tarballs.getAnus(), blood);
    else
        anonymous.kill(linda_tarballs);

} else
    while(anonymous.hasCum()){
       anonymous.rape(linda_tarballs, linda_tarballs.getAnus());
    }

anonymous.dump(shit, linda_tarballs.getMouth());
anonymous.dump(piss, linda_tarballs.getVagina());
anonymous.command.make(linda_tarballs, anonymous.location.getKitchen(), pie);

if (anonymous.inventory.getItemcount(pie) >= 1)
    anonymous.kill(linda_tarballs);


Please ensure your code compiles before submitting it to /prog/ in the future.

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