mirror of
				https://gitlab.com/80486DX2-66/gists
				synced 2025-05-31 08:31:41 +05:30 
			
		
		
		
	C: clock-malfunction-imitation.c: optimize sizeof(time(NULL))
				
					
				
			This commit is contained in:
		@@ -46,7 +46,7 @@ time_t clock_change_time(time_t* x) {
 | 
			
		||||
	if (ticks_before_accident == 0) {
 | 
			
		||||
		y = 0;
 | 
			
		||||
 | 
			
		||||
		size_t max = sizeof(time(NULL)) / sizeof(int);
 | 
			
		||||
		size_t max = sizeof(time_t) / sizeof(int);
 | 
			
		||||
		printf("max of clock_change_time = %zu\n", max);
 | 
			
		||||
		size_t intmax_plus_1 = (size_t) INT_MAX + 1;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user