?? write.c
字號:
/* A module of ASYNCx.LIB version 1.02 */
#include "asyncdef.h"
/*******************************************************
Send n objects of size s to the port associated with p
starting with the one pointed to by buf. Return the
number of objects transmitted. If there is an error
during this process, return a short count.
*******************************************************/
int a_write(void *buf,int s,int n,ASYNC *p)
{byte *bp;
int i;
if (p)
{bp=(byte *)buf;
n*=s;
i=0;
while(i<n)
if (a_putc(*bp,p)==*bp)
{bp++;
i++;
}
return(n/s);
}
return 0;
} /* end of a_write(buf,s,n,p) */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -