1 Star 0 Fork 6

northqd/async

forked from 方瑾/async 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
util.h 603 Bytes
一键复制 编辑 原始数据 按行查看 历史
方瑾 提交于 2019-04-14 19:27 . update
#ifndef __UTIL_H__
#define __UTIL_H__
#include<stdlib.h>
#include<string.h>
#include<stdio.h>
#include<stdarg.h>
#include <time.h>
#include <windows.h>
#include <assert.h>
#define NEW(type) (type *)malloc(sizeof(type))
#define APPLY(task, ...) task(__VA_ARGS__)
#define ABS(n) n > 0 ? n : -n
#define RANGE(min, max, number) number < min ? min : number > max ? max : number
#define EQUAL(a, b) a == b ? 0 : a < b ? -1 : 1
#define log printf
// uuid
char * createUUID();
// ȡij
int getNumberLength(int number);
int gettimeofday(struct timeval *tp, void *tzp);
#endif // !__UTIL_H__
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/northqd2018/async.git
git@gitee.com:northqd2018/async.git
northqd2018
async
async
master

搜索帮助