2012年4月24日

strlen

摘要: function strlen <cstring> size_t strlen ( const char * str );Get string lengthReturns the length of str. The length of a C string is determined by the terminating null-character: A C string is as ... 阅读全文

posted @ 2012-04-24 23:09 D_D_U 阅读(273) 评论(0) 推荐(0) 编辑

atoi

摘要: function atoi <cstdlib> int atoi ( const char * str );Convert string to integerParses the C string str interpreting its content as an integral number, which is returned as an int value. The functi... 阅读全文

posted @ 2012-04-24 22:40 D_D_U 阅读(224) 评论(0) 推荐(0) 编辑

strncpy

摘要: char * strncpy ( char * destination, const char * source, size_t num );Copy characters from stringCopies the first num characters of source to destination. If the end of the source C string (which is ... 阅读全文

posted @ 2012-04-24 22:26 D_D_U 阅读(289) 评论(0) 推荐(0) 编辑

memset

摘要: function memset <cstring> void * memset ( void * ptr, int value, size_t num );Fill block of memorySets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted... 阅读全文

posted @ 2012-04-24 22:18 D_D_U 阅读(302) 评论(0) 推荐(0) 编辑

Arguments to main

摘要: Arguments to main For those writing programs which will run in a hosted environment, arguments to main provide a useful opportunity to give parameters to programs. Typically, this facility is used to... 阅读全文

posted @ 2012-04-24 21:47 D_D_U 阅读(250) 评论(0) 推荐(0) 编辑

argc and argv

摘要: argc and argv So far, all the programs we have written can be run with a single command. For example, if we compile an executable called myprog, we can run it from within the same directory with the ... 阅读全文

posted @ 2012-04-24 21:27 D_D_U 阅读(253) 评论(0) 推荐(0) 编辑

导航