2012年2月8日星期三

socket-----C

fprintf(out, "Hello %s\n", name);
printf
sprintf
--------------------------
perror
--------------------------------------------------
int i = 0;
while(i < 10)
{
printf(".");
sleep(1);
i ++;
}
--------------------------------------------
int i = 1;
while(i < 10)
{
fprintf(stderr,".");
sleep(1);
i ++;
}
----------------------------------------------
int i = 1;
while(i < 10)
{
printf(".");
fflush(stdout);
sleep(1);
i ++;
}
-------------------------------------------
1 gcc default path: /usr/include
2 gcc -I directory
3 do not search default

about the driver compilation, usually we do not need kernel to search for default path. enforce the kernel not to do that with a parameter
---------------------------------------------
how to get local ip in c on linux is here
-------------------------------------------------------------------
scp test.c xxxxxx@timberlake.cse.buffalo.edu:./

-----------------------------------------------------------

:133:174 co 299
----------------------------------------------

没有评论: