/*
 * Copyright (c) 2002, 2003, 2005 Sendmail, Inc. and its suppliers.
 *	All rights reserved.
 *
 * By using this file, you agree to the terms and conditions set
 * forth in the LICENSE file which can be found at the top level of
 * the sendmail distribution.
 */

#include "sm/generic.h"
SM_RCSID("@(#)$Id: strgetmax.c,v 1.6 2005/06/02 19:00:37 ca Exp $")

#include "sm/assert.h"
#include "sm/magic.h"
#include "sm/rpool.h"
#include "sm/strrcb.h"
#include "sm/str-int.h"
#include "sm/str2rcb.h"

#if SM_STR_CHECK
/*
**  SM_STR_GETMAX -- Get the bound length of str.
**
**	Parameters:
**		str -- sm_str_P object.
**
**	Returns:
**		maximum length.
*/

uint
sm_str_getmax(sm_str_P str)
{
	SM_IS_BUF(str);
	return str->sm_str_max;
}
#endif /* SM_STR_CHECK */


syntax highlighted by Code2HTML, v. 0.9.1