vga_hasmode(3)
Returns if a video mode is supported
#include <vga.h>
int vga_hasmode(int mode);
The function returns a non-zero value if the given mode is supported and 0 else. See vga_setmode(3) for a list of predefined mode values and their meaning. vga_modeinfo(3) can be used to find out details about the specific mode.
Unchanged in 5 releases since Debian 3.1 (Sarge).