realsys.h

来自「eC++编译器源码」· C头文件 代码 · 共 21 行

H
21
字号
/*RPC02-95 Added access to date/time and other underlying OS functions*/
#pragma RealSys
  typedef struct { 
    unsigned int month,day,year,dayOfWeek,hour,minute,second,millisecond;
  } tTime;
  
  /* Be careful about midnight when calling these consecutively*/
  void Date(unsigned int &month, unsigned int &day, unsigned int &year, unsigned int &timeZone);  /*0=GMT*/
  void Time(unsigned int &hour, unsigned int &minute, unsigned int &second, unsigned int &millisecond);
  unsigned int Format (tTime &time, char format[], char &output[], unsigned int index);
  void TZConvert(unsigned int tzoneFrom, unsigned int tzoneTo, unsigned int hr, unsigned int min, unsigned int &hour, unsigned int &minute);
  long Elapsed();   /*of current process*/
  boolean BigEndian();
  unsigned int BytesInWord();
  unsigned int Argc();   /*count of arguments on command line*/
  void Argv(unsigned int i, char &out[]); /*access string for command line arg i*/
  void Stop(long l);   /*halts executing process*/
  void GetEnv(char &inout[]);  /*Pass in name of environment variable; output value if defined*/
  unsigned int Spawn(char cline[], unsigned int view); 
  /*fork a process with a command line; path to execute first; view=0 minimized 1 max 2 normal*/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?