static char *labels[OBJ_CLASS_NUM];
double __get_us(struct timeval t) {
return (t.tv_sec * 1000000 + t.tv_usec); }
inline static int clamp(float val, int min, int max)
{
return val > min ? (val < max ? val : max) : min;
}
char *readLine(FILE *fp, char *buffer, int *len)
{
int ch;
int i = 0;
size_t buff_len = 0;
buffer = (char *)malloc(buff_len + 1);
if (!buffer)
return NULL; // Out of memory
while (
c++ 逐行读取txt文件内容写入*char[]
于 2024-02-20 09:47:36 首次发布