修复拼写错误

This commit is contained in:
xiongziliang 2020-02-21 11:35:53 +08:00
parent c56a0a0624
commit 618b028da4
4 changed files with 12 additions and 12 deletions

View File

@ -45,20 +45,20 @@ API_EXPORT char* API_CALL mk_util_get_exe_path();
* @param relative_path ,null
* @return 使free
*/
API_EXPORT char* API_CALL mk_uitl_get_exe_dir(const char *relative_path);
API_EXPORT char* API_CALL mk_util_get_exe_dir(const char *relative_path);
/**
* unix标准的系统时间戳
* @return
*/
API_EXPORT uint64_t API_CALL mk_uitl_get_current_millisecond();
API_EXPORT uint64_t API_CALL mk_util_get_current_millisecond();
/**
*
* @param fmt %Y-%m-%d %H:%M:%S
* @return 使free
*/
API_EXPORT char* API_CALL mk_uitl_get_current_time_string(const char *fmt);
API_EXPORT char* API_CALL mk_util_get_current_time_string(const char *fmt);
/**
*
@ -66,7 +66,7 @@ API_EXPORT char* API_CALL mk_uitl_get_current_time_string(const char *fmt);
* @param len
* @return 使free
*/
API_EXPORT char* API_CALL mk_uitl_hex_dump(const void *buf, int len);
API_EXPORT char* API_CALL mk_util_hex_dump(const void *buf, int len);
///////////////////////////////////////////日志/////////////////////////////////////////////
/**

View File

@ -35,23 +35,23 @@ API_EXPORT char* API_CALL mk_util_get_exe_path(){
return strdup(exePath().data());
}
API_EXPORT char* API_CALL mk_uitl_get_exe_dir(const char *relative_path){
API_EXPORT char* API_CALL mk_util_get_exe_dir(const char *relative_path){
if(relative_path){
return strdup((exeDir() + relative_path).data());
}
return strdup(exeDir().data());
}
API_EXPORT uint64_t API_CALL mk_uitl_get_current_millisecond(){
API_EXPORT uint64_t API_CALL mk_util_get_current_millisecond(){
return getCurrentMillisecond();
}
API_EXPORT char* API_CALL mk_uitl_get_current_time_string(const char *fmt){
API_EXPORT char* API_CALL mk_util_get_current_time_string(const char *fmt){
assert(fmt);
return strdup(getTimeStr(fmt).data());
}
API_EXPORT char* API_CALL mk_uitl_hex_dump(const void *buf, int len){
API_EXPORT char* API_CALL mk_util_hex_dump(const void *buf, int len){
assert(buf && len > 0);
return strdup(hexdump(buf,len).data());
}

View File

@ -396,8 +396,8 @@ static void s_on_exit(int sig){
flag = 0;
}
int main(int argc, char *argv[]) {
char *ini_path = mk_uitl_get_exe_dir("c_api.ini");
char *ssl_path = mk_uitl_get_exe_dir("ssl.p12");
char *ini_path = mk_util_get_exe_dir("c_api.ini");
char *ssl_path = mk_util_get_exe_dir("ssl.p12");
mk_config config = {
.ini = ini_path,

View File

@ -195,8 +195,8 @@ void test_client(){
}
int main(int argc, char *argv[]) {
char *ini_path = mk_uitl_get_exe_dir("c_api.ini");
char *ssl_path = mk_uitl_get_exe_dir("ssl.p12");
char *ini_path = mk_util_get_exe_dir("c_api.ini");
char *ssl_path = mk_util_get_exe_dir("ssl.p12");
mk_config config = {
.ini = ini_path,