str.c revision d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d
/* Copyright (c) 2002-2003 Timo Sirainen */
#include "lib.h"
#include "buffer.h"
#include "printf-upper-bound.h"
#include "str.h"
#include <stdio.h>
{
}
{
}
{
buffer_free(*str);
}
{
/* remove the \0 - we don't want to keep it */
}
{
str_add_nul(*str);
return buffer_free_without_data(*str);
}
{
}
{
}
{
}
{
return buffer_get_used_size(str);
}
{
}
{
len = 0;
len++;
}
{
}
{
const char *cstr;
}
{
}
{
char *buf;
int ret;
#ifdef HAVE_VSNPRINTF
#else
#endif
}
{
}
{
}
{
}