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

whats the purpose of this C function

Name: Anonymous 2007-09-12 5:22 ID:wfxixJ2g

Excuse my newfagedry

Consider the C code function below:
void qwerty(int *x, int *y, int size)
{
 int k=0;
 while ( k < size ) {
    *(x + k) = *(y + k);
    k++;
 }
}

i) What best describes the purpose of the function qwerty?

Name: Anonymous 2007-09-12 15:56 ID:i9LZzsvu

>>42
PROTIP: sizeof(int) is usually not 1.

/* Standard Version */
#include <string.h>
#define qwerty(x,y,s) memcpy(x,y,(s)*sizeof(int))

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