in C each character is a single byte, unless its a unicode character which then it is 2 bytes in length.
essentially just make an 64 byte array and read in 8 bytes at a time.
a simplesolutionn could be something like so.
Code
char *key = 'abcdefghijklmnopqrstuvwyxzabcdefghijklmnopqrstuvwyxz';
char eight_bytes[9] = {0};
char *pointer = key;
while(*pointer)
{
memcpy(eight_bytes, pointer, 8);
printf("%s", eight_bytes);
*pointer += 8;
}
essentially it will loop until *pointer reaches a null byte and then each iteration it will copy 8 bytes into a new char array and increment the pointer by 8 to fetch the next 8 bytes the next iteration.
edit:: a more direct approach would be to just to look through each byte and using a counter to know when to stop at 8 byte increments.
This post was edited by pop_eax on Jul 10 2013 12:51pm