Kagee

Untitled

May 30th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. bool arrayEqual(BYTE *a, BYTE *b, int len) {
  2.         return ::memcmp( a, b, len ) == 0;
  3. }
  4. void nextComm(BYTE *fb, long pos) {
  5.         // should only be called at colorcodes
  6.         BYTE blue[3] = {0x1B, 0x5B, 0x30};
  7.         if(
  8.                 arrayEqual(fb+pos, blue, 3)
  9.         ) {
  10.                 printf("woo");
  11.                 return;
  12.         } else { printf("boo"); return; }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment