Lines Matching defs:path
50 static void GetDirName(char *dirBuf, unsigned int dirBufSize, const char *path)
52 if (dirBuf == NULL || dirBufSize == 0 || path == NULL) {
53 BBOX_PRINT_ERR("dirBuf: %p, dirBufSize: %u, path: %p!\n", dirBuf, dirBufSize, path);
57 const char *end = path + strlen(path);
58 while (*end != '/' && end >= path) {
61 if (end >= path) {
63 if (strncpy_s(dirBuf, dirBufSize - 1, path, end - path + strlen("/")) != EOK) {