plan 9 kernel history: overview | file list | diff list

1995/0222/pc/main.c (diff list | history)

1995/02021/sys/src/9/pc/main.c:775,7771995/0222/sys/src/9/pc/main.c:775,811 (short | long | prev | next)
1993/0915    
	} 
	return 0; 
1991/0803    
} 
1995/0222    
 
int 
iprint(char *fmt, ...) 
{ 
	char buf[PRINTSIZE]; 
	int n; 
 
	n = doprint(buf, buf+sizeof(buf), fmt, (&fmt+1)) - buf; 
	screenputs(buf, n); 
 
	return n; 
} 
 
int 
cistrcmp(char *a, char *b) 
{ 
	int ac, bc; 
 
	for(;;){ 
		ac = *a++; 
		bc = *b++; 
	 
		if(ac >= 'A' && ac <= 'Z') 
			ac = 'a' + (ac - 'A'); 
		if(bc >= 'A' && bc <= 'Z') 
			bc = 'a' + (bc - 'A'); 
		ac -= bc; 
		if(ac) 
			return ac; 
		if(bc == 0) 
			break; 
	} 
	return 0; 
} 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)