
C_module
prepare for self
Kylee Kello
不一定每个人都会失败,但也不一定每个人都运气好。怎么做是你的自由。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
randomNumberFill
→ stdio + stdlib 常用函数#include <stdio.h>#include <stdlib.h>#include <time.h>// 生成n位随机数int randomNumberFill(char *buffer,int count){ int res; int i=0; srand(time(0)); for(;i<count;i++) { buffer[i]=(char)(rand()%10+4原创 2020-06-24 15:03:27 · 229 阅读 · 0 评论 -
threadPool
Environment:Linux /* * thread pool * parameters: thread function thread function parameter threadpool depth * */void createThreadPool(void*(*thFtn)(void*),void* arg,int depth){ //initalize all identidy of thread long *tids = callo原创 2020-05-16 15:22:06 · 261 阅读 · 0 评论 -
charArrayToInt + intLength
#include <stdio.h>#include <stdlib.h>#include <string.h>/* pre-define all functions*/int checkInputPureInt(char*,int);int convertCharArrayToInt(char *,int);int getInt();int main(int argc,char** argv){ int res = getInt(); .原创 2020-05-16 01:58:24 · 370 阅读 · 0 评论 -
mark_int_four
#include <stdio.h>//system函数//itoa函数、ltoa函数#include <stdlib.h>/* * 函数可变参数的使用 * int n,... * va_list argptr * va_start(argptr , n) * va_arg(argptr,type) * va_end(argptr) *//* define all functions*/ void module_1();void module_.原创 2020-05-15 17:58:16 · 163 阅读 · 0 评论