str.h revision e0e555a09a8ff93aa904586aeffd37f5b0e3a84d
#ifndef STR_H
#define STR_H
#include "buffer.h"
/* Allocate a constant string using the given str as the input data.
str pointer is saved directly, so it must not be freed until the returned
string is no longer used. len must contain strlen(str). */
{
}
{
}
{
}
{
}
{
}
{
}
/* Append printf()-like data */
ATTR_FORMAT(2, 0);
{
}
{
}
/* Truncate the string to specified length. If it's already smaller,
do nothing. */
{
}
#endif