If you already found the word, grabbing the 8 bits is just a matter of computing where they start and copying them.but my problem is what the algorithm to use for grabbing each 8followed bit after each occurrence of SearchedWord and storing them in the matrix(at the end I return the matrix) .. here's my catch!
Write it. If you find it too hard, work on a simplified version of this problem, i.e., all you're interested in is finding the very first instance of the word. No 8 bits, no matrix. Refer to posts #2, #4 and #6 to help you because those contain the very suggestions that you're asking for.Any suggestion? for instance in C++ there's an already built function called find but in c there's no function called find that I can call it!