C程序开头的#include<conio.h>调用的库函数的内容是什么?

[复制链接]
查看11 | 回复0 | 2007-3-18 17:34:49 | 显示全部楼层 |阅读模式
/* conio.h Direct MSDOS console input/output. Copyright (c) Borland International 1987,1988 All Rights Reserved.*/#if !defined(__VIDEO)#define __VIDEO#if __STDC__#define _Cdecl#else#define _Cdecl cdecl#endif#ifndef __OLDCONIO__struct text_info { unsigned char winleft; unsigned char wintop; unsigned char winright; unsigned char winbottom; unsigned char attribute; unsigned char normattr; unsigned char currmode; unsigned char screenheight; unsigned char screenwidth; unsigned char curx; unsigned char cury;};enum text_modes { LASTMODE=-1, BW40=0, C40, BW80, C80, MONO=7 };#if !defined(__COLORS)#define __COLORSenum COLORS { BLACK, /* dark colors */ BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY, DARKGRAY,/* light colors */ LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHTMAGENTA, YELLOW, WHITE};#endif#define BLINK128 /* blink bit */externint _Cdecl directvideo;void _Cdecl clreol(void);void _Cdecl clrscr(void);void _Cdecl delline(void);int_Cdecl gettext(int left, int top, int right, int bottom,
void *destin);void_Cdecl gettextinfo (struct text_info *r);void _Cdecl gotoxy(int x, int y);void_Cdecl highvideo (void);void _Cdecl insline(void);void_Cdecl lowvideo (void);int_Cdecl movetext (int left, int top, int right, int bottom,
int destleft, int desttop);void_Cdecl normvideo (void);int_Cdecl puttext(int left, int top, int right, int bottom,
void *source);void_Cdecl textattr (int newattr);void _Cdecl textbackground (int newcolor);void _Cdecl textcolor (int newcolor);void _Cdecl textmode (int newmode);int
_Cdecl wherex(void);int
_Cdecl wherey(void);void _Cdecl window(int left, int top, int right, int bottom);#endifchar *_Cdecl cgets(char *str);int
_Cdecl cprintf(const char *format, ...);int_Cdecl cputs(const char *str);int_Cdecl cscanf(const char *format, ...);int_Cdecl getch(void);int_Cdecl getche(void);char *_Cdecl getpass(const char *prompt);int_Cdecl kbhit(void);int_Cdecl putch(int c);int_Cdecl ungetch(int ch);#endif
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行