mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 12:08:16 +08:00
38 lines
945 B
C
38 lines
945 B
C
/**
|
|
* File: utils.h
|
|
* Author: Li XianJing <xianjimli@hotmail.com>
|
|
* Brief: utils function
|
|
*
|
|
* Copyright (c) 2018 - 2018 Li XianJing <xianjimli@hotmail.com>
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* License file for more details.
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* History:
|
|
* ================================================================
|
|
* 2018-01-21 Li XianJing <xianjimli@hotmail.com> created
|
|
*
|
|
*/
|
|
|
|
#ifndef UTILS_H
|
|
#define UTILS_H
|
|
|
|
#include "base/types_def.h"
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
int unique(wchar_t* str, int size);
|
|
char* read_file(const char* file_name, uint32_t* length);
|
|
ret_t filename_to_name(const char* filename, char* str, uint32_t size);
|
|
ret_t output_c_source(const char* filename, const char* prefix, const char* name, uint8_t* buff, uint32_t size);
|
|
|
|
END_C_DECLS
|
|
|
|
#endif//UTILS_H
|
|
|