Files
arcs/arcs-sdk/components/simple_box/util/utils.h
2026-08-13 16:50:52 +08:00

27 lines
531 B
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* Copyright (c) 2025, LISTENAI
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
/**
* @brief 将相对路径转换为绝对路径
*
* @param path 输入路径,可能是相对路径或绝对路径
* @param full_path 输出缓冲区,存放转换后的绝对路径
* @param size 输出缓冲区大小
* @return int 0成功,非0失败
*/
int convert_to_absolute_path(const char *path, char *full_path, size_t size);
#ifdef __cplusplus
}
#endif