Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool arrayEqual(BYTE *a, BYTE *b, int len) {
- return ::memcmp( a, b, len ) == 0;
- }
- void nextComm(BYTE *fb, long pos) {
- // should only be called at colorcodes
- BYTE blue[3] = {0x1B, 0x5B, 0x30};
- if(
- arrayEqual(fb+pos, blue, 3)
- ) {
- printf("woo");
- return;
- } else { printf("boo"); return; }
- }
Advertisement
Add Comment
Please, Sign In to add comment