Home
last modified time | relevance | path

Searched refs:cwd (Results 1 - 1 of 1) sorted by relevance

/device/soc/hisilicon/hi3861v100/hi3861_adapter/kal/posix/src/
H A Dfile.c60 * @brief Get canonical form of a given path based on cwd(Current working directory).
62 * @param cwd Indicates the current working directory.
68 * @attention if path is an absolute path, cwd is ignored. if cwd if not specified, it is assumed to be root('/').
72 static size_t GetCanonicalPath(const char *cwd, const char *path, char *buf, size_t bufSize) in GetCanonicalPath() argument
78 if (!cwd || path[0] == '/') { in GetCanonicalPath()
79 cwd = ""; in GetCanonicalPath()
82 size_t tmpLen = strlen(cwd) + strlen(path) + 4; // three '/' and one '\0' in GetCanonicalPath()
91 if (-1 == sprintf_s(tmpBuf, tmpLen, "/%s/%s/", cwd, path)) { in GetCanonicalPath()

Completed in 2 milliseconds