2 * Copyright (c) 2007, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
13 #ifndef LIBSOLV_TOOLS_UTIL_H
14 #define LIBSOLV_TOOLS_UTIL_H
17 makeevr(Pool *pool, const char *s)
19 if (!strncmp(s, "0:", 2) && s[2])
21 return pool_str2id(pool, s, 1);
29 split(char *l, char **sp, int m)
39 while (*l && *l != ' ')
56 /* this join does not depend on parsedata */
58 join2(struct joindata *jd, const char *s1, const char *s2, const char *s3)
72 jd->tmp = solv_realloc(jd->tmp, jd->tmpl);
95 join_dup(struct joindata *jd, const char *s)
97 return s ? join2(jd, s, 0, 0) : 0;
101 join_freemem(struct joindata *jd)
111 #endif /* LIBSOLV_TOOLS_UTIL_H */