C函数-HIJKLMN
jichunlai
学着生活
展开
-
C long2a
/*** LTOA.C**** Converts a long integer to a string.**** Copyright 1988-90 by Robert B. Stout dba MicroFirm**** Released to public domain, 1991**** Parameters: 1 - number to be转载 2012-09-06 07:32:27 · 1626 阅读 · 0 评论 -
inotify实例
#include #include #include #include #include #include #include //__SYSCALL(int, inotify_init)//__SYSCALL(int, inotify_add_watch, int, fd, const char *, path, __u32, mask)//__SYSCAL原创 2012-08-31 18:01:26 · 1953 阅读 · 0 评论 -
msgget & msgsnd
/*msg.c*/ #include #include #include #include #include #include #include #define BUFSZ 512 /*消息缓冲区*/ struct message { long msg_type转载 2012-09-06 07:35:53 · 1532 阅读 · 0 评论 -
mkdir递归创建目录
#include #include #include #include #include int make_dirs(char *dir, __mode_t m){ if(NULL == dir || '\0' == *dir) return -1; char *p = strrchr(dir, '/'); if(p != NULL)原创 2013-07-04 14:58:53 · 3611 阅读 · 0 评论