All pastes #549819 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-08 07:14 UTC
rendered paste body
void deadbeef(char *buf, int length)
{ 
  switch(length % 4) {
    case 1: do { *buf++ = 0xDE;
        case 2: *buf++ = 0xAD;
        case 3: *buf++ = 0xBE;
        case 0: *buf++ = 0xEF;
        } while((length -= 4) > 0);
  }         
}