标准库的 char *ctime(const time_t *) 函数,这里参数为什么要传指针呢?
											这里参数要求传指针(const time_t * ),这是出于什么考虑呢?由于在函数内部不会修改实参的值,直接传值 time_t(long) 不是更直观吗,为什么作者不这么设计呢?
新手求大佬解惑,
 
										
					
	 
										
					
	 2022-03-04 11:22
	    2022-03-04 11:22
  extern int *__errno_location (void) __THROW __attribute_const__; # define errno (*__errno_location ())
[此贴子已经被作者于2022-3-4 20:59编辑过]
 2022-03-04 20:57
	    2022-03-04 20:57
   2022-03-06 16:22
	    2022-03-06 16:22
   2022-03-06 23:17
	    2022-03-06 23:17