Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define SIZE 8192
- char buf[SIZE];
- ..
- unsigned char s[] = { 0x46,0x4C,0x56 };
- char* pos = search(buf, buf + size, s, s + 3);
- if (pos < buf + size)
- cerr << "match found at " << static_cast<void*>(pos) << endl;
- ..
- // match found at 0x288c3c
- // match found at 0x288c3c
- // match found at 0x288c3c
- // match found at 0x288c3c
- // match found at 0x288c3c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement