bitmap file handler in C