coding an example from a book and i get the message
storage size of 'regs' not known
wondering why i get this if it supposed to return the dos version i am on.
Code:
/* gets DOS version and number */
#include <stdio.h>
#include <dos.h>
int main()
{
int major, minor;
union REGS regs; // required for making DOS calls
regs.h.a=1; // GET VERSION NUMBER
regs.h.ah=0x30; //get version function 30h
int86(0x21,®s,®s); // call DOS
major=regs.h.al; // major version number
minor=regs.h.ah; // minor version number
printf("This is DOS version %i, release %i\n", major, minor);
return 0;
}