---
name: "lock_bitmap"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/lock_bitmap/3alleg4"
---

# lock\_bitmap(3alleg4)

Locks the memory used by a bitmap. Allegro game programming library.

## NAME

lock\_bitmap - Locks the memory used by a bitmap. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void lock\_bitmap(BITMAP \*bitmap);**

## DESCRIPTION

Under DOS, locks all the memory used by a bitmap. You don't normally need to call this function unless you are doing very weird things in your program.
