mktl.c
来自「MCS51产单片机上实现的tcp/ip,很全的哦,需要的可以参考一下.」· C语言 代码 · 共 32 行
C
32 行
/* Create command files for Borland TLIB command. Reads list of
* object file names from stdin in free format
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
int
main()
{
int c;
int prev = 0;
for(;;){
/* Skip leading white space */
while(c = getchar(),isspace(c))
;
if(c == EOF)
break;
if(prev)
printf(" &\n");
/* Print "+token" */
printf("+%c",c);
while(c = getchar(),!isspace(c) && c != EOF)
putchar(c);
if(c == EOF)
break;
prev = 1;
}
putchar('\n'); /* Final line is empty */
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?