- strlen (const char *s) [http://www.gnu.org/software/libc/manual/html_node/String-Length.html]
- sprintf (workName, "tTcpWork%d", ix++);
Byte Manipulate:
- bzero (buffer,256)
File:
- read (sFd, buffer, 255);
- write (sFd, buffer, strlen (buffer))
Process:
- fork()
Input/Ouput:
- scanf /*Read is a token as yhou want*/
int scanf ( const char * format, ... );
- gets(char *); /* Read the the stdin and is a string*/
- fgets /*Read from the file */
char * fgets ( char * str, int num, FILE * stream );
Notice: gets will generate dangerous problem, so can using the fgets.
http://dsewnr.blogspot.com/2007/05/c-gets.html
http://www.cplusplus.com/reference/clibrary/cstdio/scanf/
沒有留言:
張貼留言