摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include <signal.h> #include 阅读全文
posted @ 2020-09-13 20:03 卷哭你 阅读(359) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include 阅读全文
posted @ 2020-09-13 19:39 卷哭你 阅读(471) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include <signal.h> #include 阅读全文
posted @ 2020-09-13 11:48 卷哭你 阅读(744) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include <signal.h> #include 阅读全文
posted @ 2020-09-13 11:24 卷哭你 阅读(318) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #include <pthread.h> #include <semaphore.h> #include <unistd.h> #include <signal.h> #include 阅读全文
posted @ 2020-09-13 11:04 卷哭你 阅读(332) 评论(0) 推荐(0) 编辑
摘要: (1)字符串必须要有'\0',有了这个后面strlen strcmp strsr strchr putc 这些字符串函数才能使用, 他们的源码实现就是依赖'\0' (2) 传参要注意 char xxx[] 还是 "xxx" 根据函数原型 不然出现默名问题 (3) 用于存放字符的数组称为字符数组。在 阅读全文
posted @ 2020-09-13 08:04 卷哭你 阅读(477) 评论(0) 推荐(0) 编辑
摘要: char fn[256]; int rc; pcm = calloc(1, sizeof(struct pcm)); if (!pcm || !config) return &bad_pcm; /* TODO: could support default config here */ pcm->co 阅读全文
posted @ 2020-09-13 05:37 卷哭你 阅读(408) 评论(0) 推荐(0) 编辑