【導(dǎo)讀】用法:intopen(char*pathname,intaccess[,intpermiss]);inthandle;charmsg[]="Helloworld";perror("Error:");return1;write(handle,msg,strlen(msg));close(handle);return0;用法:voidoutport(intport,intvalue);intvalue=64;intport=0;outportb(port,value);printf("Value%dsenttoportnumber%d\n",value,port);return0;用法:voidoutportb(intport,charbyte);intvalue=64;intport=0;outportb(port,value);printf("Value%dsenttoportnumber%d\n",value,port);return0;用法:voidfarouttext(charfar*textstring);intgdriver=DETECT,gmode,errorcode;intmidx,midy;initgraph(&gdriver,&gmode,"");errorcode=graphresult();if(errorcode!=grOk)/*anerroroccurred*/. printf("Graphicserror:%s\n",grapherrormsg(errorcode));printf("Pressanykeytohalt:");getch();midx=getmaxx()/2;midy=getmaxy()/2;moveto(midx,midy);outtext("This");outtext("is");outtext("a");outtext("test.");getch();closegraph();return0;用法:voidfarouttextxy(intx,inty,char*textstring);intgdriver=DETECT,gmode,errorcode;intmidx,midy;initgraph(&gdriver,&gmode,"");errorcode=graphresult();if(errorcode!=grOk)/*anerroroccurred*/. printf("Graphicserror:%s\n",grapherrormsg(errorcode));printf("Pressanykeytohalt:");getch();midx=getmaxx()/2;midy=getmaxy()/2;outtextxy(midx,midy,"Thisisatest.");getch();closegraph();return0;用法:char*parsfnm(char*cmdline,structfcb*fcbptr,intoption);charline[80];structfcbblk;gets(line);