/*
* Copyright (c) 2002, 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: strgetlen.c,v 1.3 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_GETLEN -- Returns the current length of str.
**
** Parameters:
** str -- sm_str_P object.
**
** Returns:
** Number of characters in str.
*/
uint
sm_str_getlen(sm_str_P str)
{
SM_IS_BUF(str);
return str->sm_str_len;
}
#endif /* SM_STR_CHECK */
syntax highlighted by Code2HTML, v. 0.9.1