add strpool, a printf collector to make it eaiser to collect strings

into one string


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15519 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-06-28 22:49:56 +00:00
parent f169996871
commit d1e139c302
2 changed files with 124 additions and 0 deletions

View File

@@ -381,6 +381,19 @@ warnerr(int doerrno, const char *fmt, va_list ap)
void * ROKEN_LIB_FUNCTION
rk_realloc(void *, size_t);
struct rk_strpool;
char * ROKEN_LIB_FUNCTION
rk_strpoolcollect(struct rk_strpool *);
struct rk_strpool * ROKEN_LIB_FUNCTION
rk_strpoolprintf(struct rk_strpool *, const char *, ...)
__attribute__ ((format (printf, 1, 0)));;
void ROKEN_LIB_FUNCTION
rk_strpoolfree(struct rk_strpool *);
ROKEN_CPP_END
#endif /* __ROKEN_COMMON_H__ */