Lines Matching defs:buf
28 * returned and absolute path to the file is filled into buf. In case buf is
53 int tst_get_path(const char *prog_name, char *buf, size_t buf_len)
67 snprintf(buf, MIN(buf_len, (size_t) (end - start + 1)),
70 snprintf(buf, buf_len, "%s", start);
72 size = strlen(buf);
79 snprintf(buf, buf_len, ".");
80 size = strlen(buf);
86 if (buf[size - 1] != '/')
88 snprintf(buf + size, buf_len - size, "/%s",
92 snprintf(buf + size, buf_len - size, "%s",
95 if (buf_len - size > ret && file_exist(buf))