|
C库函数手册(33) └──┴───────────┴───────────┘ int biosmemory()返回内存大小,以K为单位. int biosprint(int cmd,int byte,int port)控制打印机的输入/输出. port为打印机号,0为LPT1,1为LPT2,2为LPT3等 cmd可以为以下值: 0 打印字符,将字符byte送到打印机 1 打印机端口初始化 2 读打印机状态 函数返回值由以下位值组成表示当前打印机状态 0x01 设备时间超时 0x08 输入/输出错误 0x10 选择的 0x20 走纸 0x40 认可 0x80 不忙碌
int biostime(int cmd,long newtime)计时器控制,cmd为功能号,可为以下值 0 函数返回计时器的当前值 1 将计时器设为新值newtime
struct country *country(int countrycmode,struct country *countryp) 本函数用来控制某一国家的相关信息,如日期,时间,货币等. 若countryp=-1时,当前的国家置为countrycode值(必须为非0).否则,由countryp 所指向的country结构用下列的国家相关信息填充: (1)当前的国家(若countrycode为0或2)由countrycode所给定的国家. 结构country定义如下: ┌────────────────────┐ │struct country │ │{ │
|