hello i am trying to read/write a value to a port (240h for example) but whenever i use inportb() or outportb() my compiler (bloodshed DEV++) flags it as a reference as an undefined function. i have included the stdio.h, conio.h and dos.h files but still nothing. my sample code is:
#include <stdio.h>
#include <conio.h>
#include <dos.h>
int main()
{
int inportb();
int result;
while(1)
{
result= inportb(0x240);
printf("Result is %d",result);
}
rteurn 0;
}