2002-07-01 Joel Sherrill <joel@OARcorp.com>

* rtems_webserver/misc.c: Per PR236 eliminate definition of strnlen().
This commit is contained in:
Joel Sherrill
2002-07-01 22:16:57 +00:00
parent ce8e6a8bb7
commit 8d3b3be411
3 changed files with 4 additions and 28 deletions

View File

@@ -1,3 +1,7 @@
2002-07-01 Joel Sherrill <joel@OARcorp.com>
* rtems_webserver/misc.c: Per PR236 eliminate definition of strnlen().
2002-06-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* wrapup/Makefile.am: Build libnetapps.a.

View File

@@ -49,7 +49,6 @@ enum flag {
static int dsnprintf(char_t **s, int size, char_t *fmt, va_list arg,
int msize);
static int strnlen(char_t *s, unsigned int n);
static void put_char(strbuf_t *buf, char_t c);
static void put_string(strbuf_t *buf, char_t *s, int len,
int width, int prec, enum flag f);
@@ -407,19 +406,6 @@ static int dsnprintf(char_t **s, int size, char_t *fmt, va_list arg, int msize)
return buf.count;
}
/******************************************************************************/
/*
* Return the length of a string limited by a given length
*/
static int strnlen(char_t *s, unsigned int n)
{
unsigned int len;
len = gstrlen(s);
return min(len, n);
}
/******************************************************************************/
/*
* Add a character to a string buffer

View File

@@ -49,7 +49,6 @@ enum flag {
static int dsnprintf(char_t **s, int size, char_t *fmt, va_list arg,
int msize);
static int strnlen(char_t *s, unsigned int n);
static void put_char(strbuf_t *buf, char_t c);
static void put_string(strbuf_t *buf, char_t *s, int len,
int width, int prec, enum flag f);
@@ -407,19 +406,6 @@ static int dsnprintf(char_t **s, int size, char_t *fmt, va_list arg, int msize)
return buf.count;
}
/******************************************************************************/
/*
* Return the length of a string limited by a given length
*/
static int strnlen(char_t *s, unsigned int n)
{
unsigned int len;
len = gstrlen(s);
return min(len, n);
}
/******************************************************************************/
/*
* Add a character to a string buffer