First page Back Continue Last page Overview Graphics

Eksempler (1a)

#include <string.h>

long& suspect_function(long magic, int x, int y) {

long tmp;

memcpy(&tmp,&x,sizeof(tmp));

long result = magic/tmp;

result /= y;

return result;

}

void foo() {

long l = suspect_function(100l,42,0);

}

Notes:

Lav et kodereview på 20 sekunder.