#ifndef __TMBSTR_H__
#define __TMBSTR_H__
#include "platform.h"
#ifdef __cplusplus
extern "C"
{
#endif
tmbstr TY_(tmbstrdup)( ctmbstr str );
tmbstr TY_(tmbstrndup)( ctmbstr str, uint len);
uint TY_(tmbstrncpy)( tmbstr s1, ctmbstr s2, uint size );
uint TY_(tmbstrcpy)( tmbstr s1, ctmbstr s2 );
uint TY_(tmbstrcat)( tmbstr s1, ctmbstr s2 );
int TY_(tmbstrcmp)( ctmbstr s1, ctmbstr s2 );
uint TY_(tmbstrlen)( ctmbstr str );
int TY_(tmbstrcasecmp)( ctmbstr s1, ctmbstr s2 );
int TY_(tmbstrncmp)( ctmbstr s1, ctmbstr s2, uint n );
int TY_(tmbstrncasecmp)( ctmbstr s1, ctmbstr s2, uint n );
ctmbstr TY_(tmbsubstrn)( ctmbstr s1, uint len1, ctmbstr s2 );
ctmbstr TY_(tmbsubstr)( ctmbstr s1, ctmbstr s2 );
tmbstr TY_(tmbstrtolower)( tmbstr s );
tmbstr TY_(tmbstrtoupper)( tmbstr s );
int TY_(tmbvsnprintf)(tmbstr buffer, size_t count, ctmbstr format, va_list args)
#ifdef __GNUC__
__attribute__((format(printf, 3, 0)))
#endif
;
int TY_(tmbsnprintf)(tmbstr buffer, size_t count, ctmbstr format, ...)
#ifdef __GNUC__
__attribute__((format(printf, 3, 4)))
#endif
;
#ifdef __cplusplus
}
#endif
#endif