utils.c.svn-base

来自「usb drivers based on s3c2410」· SVN-BASE 代码 · 共 35 行

SVN-BASE
35
字号
void delay(register unsigned long ms) {	volatile register unsigned long i;	for(; ms; ms--) {		i = 1000; /*XXX*/		for(; i; i--)	  	;	 }}void sio_puts(char *s){  while(*s != 0) {    sio_putc(*s);     s++;  }}intstrncmp(const char *s1, const char *s2, unsigned int n){	unsigned char u1, u2;	while (n-- > 0)	{		u1 = (unsigned char) *s1++;		u2 = (unsigned char) *s2++;		if (u1 != u2)			return u1 - u2;		if (u1 == '\0')			return 0;	}	return 0;}

⌨️ 快捷键说明

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