Exemplo n.º 1
0
int main(int argc, char** argv)
{
    int coordinateCount;
    scanf("%d", &coordinateCount);

    int board[BOAR_SIZE] = {0};
    int temp[BOAR_SIZE] = {0};

    fill_array(board, temp, coordinateCount);

    start_game(board, temp, BOAR_SIZE);

    print_in_binary(board, BOAR_SIZE);

    return (EXIT_SUCCESS);
}
Exemplo n.º 2
0
void read_bitmap(void *memptr, long overhead){
  int i;
  printf("Reading Bitmap\n");
  printf("Reading in Hex: 0x");
  void *myptr = memptr;
  for(i=0;i<overhead;i++){
    printf("%x", *(unsigned char *)myptr);
    myptr++;
  }
  printf("\nReading in Binary: ");
  myptr = memptr;
  for(i=0;i<overhead;i++){
    print_in_binary(*(unsigned char*)myptr);
    myptr++;
    printf(" ");
  }
  printf("\n");
}