08 2013 档案

摘要:1 memcmp ( ) /* -- C语言库函数源代码 - */ 2 /* 3 Compares count bytes of memory starting at buffer1 and buffer2 and find if equal or which one is first in lexical order. 4 比较内存区域buffer1和buffer2的前count个字节。当buffer1 buffer2时,返回值 > 0。 5 */ 6 int my_memcmp(const void *buffer1,const void *buff... 阅读全文
posted @ 2013-08-08 23:06 源景 阅读(2099) 评论(0) 推荐(0)
摘要:#include #include #include int main( void ){ char* buffer; // Get the current working directory: if( (buffer = _getcwd( NULL, 0 )) == NULL ) perror( "_getcwd error" ); else { printf( "%s \nLength: %d\n", buffer, strnlen(buffer) ); free(buffer); }}int _chdir( ... 阅读全文
posted @ 2013-08-08 22:58 源景 阅读(7100) 评论(0) 推荐(0)