⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme_testmktime

📁 这里包含了风河vxworks系统中的官方例程的C源代码
💻
字号:
FILE LIST -      testMktime.cDESCRIPTION -	     mktime() converts the time represented by the  tm  structure	     pointed  to  by  timeptr into a calendar time (the number of	     seconds since 00:00:00 UTC, January 1, 1970).	     RETURNS the specified calendar time.  If the calendar time	     cannot be represented, the function returns the value (time_t) -1.	     	     ctime:	     This routine converts the calendar time pointed to by timer 	     into local time in the form of a string. It is equivalent to:	     asctime (localtime (timer));	     RETURNS the pointer returned by asctime() with local broken-down	     time as the argument.	     	     assert:	     If an expression is false (that is, equal to zero) the 	     assert() macro writes information about the failed call to	     standard error in an implementation-defined format. It then	     calls abort().	     The diagnostic information includes:	         -the text of the argument		 -the name of the source file		 (value of preprocessor macro __FILE__)		 -the source line number 		  (value of preprocessor macro __LINE__)	   	     strcmp:	     This routine compares string s1 to string s2 lexicographically.	     RETURNS an integer greater than, equal to, or les than 0,	     according to whether s1 is lexcicographically greater than,	     equal to, or less than s2, respectively.	     To run this code invoke the function testMktime().TESTED ON -   Host/Target : Solaris 2.5.1 / mv1604	      VxWorks     : 5.3.1	      EXAMPLE COMPILE LINE - (use the MakeFile in the BSP)			    make CPU=PPC604 testMktime.o% make CPU=PPC604 testMktime.occppc -B/petaluma1/mayur/tor101-ppc/host/sun4-solaris2/lib/gcc-lib/ -mstrict-align -ansi -nostdinc -O2 -fvolatile -fno-builtin -fno-for-scope -Wall -I/h   -I. -I/petaluma1/mayur/tor101-ppc/target/config/all -I/petaluma1/mayur/tor101-ppc/target/h -I/petaluma1/mayur/tor101-ppc/target/src/config -I/petaluma1/mayur/tor101-ppc/target/src/drv -DCPU=PPC604  -DMV1600 -DTARGET_DIR="\"mv1604\""   -c testMktime.cOUTPUTS/LOGFILE -On VxWorks target:==================-> ld <testMktime.ovalue = 677928 = 0xa5828 = timeFiles + 0x64-> testMktime()value = 0 = 0x0The Output on Console:======================SUCCESS testing mktime

⌨️ 快捷键说明

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