getdrivername() function
getdrivername function returns a pointer to the current graphics driver.
C program for getdrivername ()
#include<graphics.h>
#include<conio.h>
main()
{
int gd = DETECT, gm;
char *drivername;
initgraph(&gd, &gm, "C:\\ TurboC3\\BGI");
drivername = getdrivername();
outtextxy(200, 200, drivername);
getch();
closegraph();
return 0;
}