随笔分类 -  c/c++

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 阅读(301) 评论(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 阅读(310) 评论(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 阅读(259) 评论(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 阅读(266) 评论(0) 推荐(0)

导航