Creation of an off-screen bitmap buffer

Listing 2 declares a pointer variable named buffer capable of pointing to a BITMAP.

Listing 2. Creation of an off-screen bitmap buffer.
  BITMAP *buffer = NULL;

  buffer = create_bitmap(256,256);

Then Listing 2 calls the create_bitmap function to create a bitmap in memory.

Dimensions of bitmap buffer are 256x256.