Lines Matching defs:buf
78 * path placed in <buf,size>
85 pathfind(const char* name, const char* lib, const char* type, char* buf, size_t size)
102 strncopy(buf, name, size);
103 return buf;
107 sfsprintf(buf, size, "%s.%s", name, type);
108 if (regular(buf, &st))
109 return buf;
121 sfsprintf(buf, size, "%-.*s%s", s - error_info.file + 1, error_info.file, name);
122 if (regular(buf, &st))
123 return buf;
126 sfsprintf(buf, size, "%-.*s%s%.s", s - error_info.file + 1, error_info.file, name, type);
127 if (regular(buf, &st))
128 return buf;
139 if (pathpath(buf, tmp, "", PATH_REGULAR))
140 return buf;
144 if (pathpath(buf, tmp, "", PATH_REGULAR))
145 return buf;
158 if (pathpath(buf, tmp, "", PATH_REGULAR))
159 return buf;
163 if (pathpath(buf, tmp, "", PATH_REGULAR))
164 return buf;