You are here

getdrivername function

Function getdrivername returns a pointer to the current graphics driver.

C program for getdrivername

#include <graphics.h>
#include <conio.h>

int main()
{
   int gd = DETECT, gm;

   char *name;

   initgraph(&gd, &gm, "C:\\TC\\BGI");

   name = getdrivername();
   outtextxy(200, 200, name);

   getch();
   closegraph();
   return 0;
}