Huh?
Of course it's possible, if by "bitboard" you just mean "a 2D array using one bit per cell".
It's sometimes easier if you e.g. round off so each row (or column) is a whole number of bytes, but you don't have to do that.
Just do something like:
#include <stdint.h>
#include <limits.h>
#define WIDTH 22
#define HEIGHT 17
uint8_t bits[(WIDTH * HEIGHT + CHAR_BIT - 1) / CHAR_BIT];
this declares bits
as an array of bytes, with enough bytes to hold a matrix of WIDTH
by HEIGHT
cells.
With the example's values, it'll be (22 * 17 + 7) / 8 or 47 bytes long (assuming CHAR_BIT
is 8).