_graphfreemem()
#include <graphics.h>
void far_graphfreemem()
_graphfreemem , _graphgetmem. _graphfreemem ( , ). free. . #include <graphics.h> #include <stdio.h> #include <conio.h> #include <alloc.h> #define NONSENSE -50 int main(void) { int graphdriver = NONSENSE, gmode, errorcode; initgraph(&graphdriver,&gmode,""); line(10, 10, 100, 100); getch(); closegraph(); return 0; } /* */ void far *far _graphgetmem(unsigned size) { printf(" _graphgetmem %d \n",size); printf(" :"); getch(); printf("\n"); /* */ return farmalloc(size); } /* */ void far _graphfreemem(void far *ptr, unsigned size) { printf(" _graphfreemem %d \n",size); printf(" :"); getch(); printf("\n"); /* */ return farfree(ptr); } |
Нет комментариев. Оставить комментарий: |