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

memcpy in string.h

Name: Anonymous 2013-05-25 16:01

$ man memcpy
MEMCPY(3)                          Linux Programmer's Manual                         MEMCPY(3)



NAME
       memcpy - copy memory area

SYNOPSIS
       #include <string.h>


Why the fuck is memcpy in string.h? It is not exclusively for dealing with strings, shouldn't it be with malloc, exit & co. in stdlib.h?

I'm aware that this is because of the ISO specification, and that it is probably like this for historical reasons, but what are those historical reasons?

Name: L. A. C !!wKyoNUUHDOmjW7I 2013-05-27 11:18

>>26
WAT DA FUCK IS DIS C++ SHIT? UR HURTING MY EYES. N WAT FUCKIN RETOID DECIDED TO PROVIDE memccpy? DAT SHIT MUSTA BEEN WRITTEN BY A BUNCH OF RETOIDS. HERE'S MY VERSION:

memory.h:

void *memchr(const void *v, int c, size_t n);

int memcmp(const void *a, const void *b, size_t n);

void *memcpy(void *to, const void *from, size_t n);

void *memmove(void *to, const void *from, size_t n);

void *memset(void *v, int c, size_t n);


WATS DA MADDA? U RETOIDS NEVER SEEN A HEADER FILE WITHOUT UR STUPID HEADER GUARDS? DATS COS UR A BUNCH OF MESSY RETOIDS WHO DONT KNO HOW TO #include FILES.

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