Changeset 8d3b3be in rtems


Ignore:
Timestamp:
Jul 1, 2002, 10:16:57 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
ee13a74
Parents:
ce8e6a8
Message:

2002-07-01 Joel Sherrill <joel@…>

  • rtems_webserver/misc.c: Per PR236 eliminate definition of strnlen().
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/libnetworking/ChangeLog

    rce8e6a8 r8d3b3be  
     12002-07-01      Joel Sherrill <joel@OARcorp.com>
     2
     3        * rtems_webserver/misc.c: Per PR236 eliminate definition of strnlen().
     4
    152002-06-26      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    26
  • c/src/libnetworking/rtems_webserver/misc.c

    rce8e6a8 r8d3b3be  
    5050static int      dsnprintf(char_t **s, int size, char_t *fmt, va_list arg,
    5151                                int msize);
    52 static int      strnlen(char_t *s, unsigned int n);
    5352static void     put_char(strbuf_t *buf, char_t c);
    5453static void     put_string(strbuf_t *buf, char_t *s, int len,
     
    410409/******************************************************************************/
    411410/*
    412  *      Return the length of a string limited by a given length
    413  */
    414 
    415 static int strnlen(char_t *s, unsigned int n)
    416 {
    417         unsigned int    len;
    418 
    419         len = gstrlen(s);
    420         return min(len, n);
    421 }
    422 
    423 /******************************************************************************/
    424 /*
    425411 *      Add a character to a string buffer
    426412 */
  • cpukit/httpd/misc.c

    rce8e6a8 r8d3b3be  
    5050static int      dsnprintf(char_t **s, int size, char_t *fmt, va_list arg,
    5151                                int msize);
    52 static int      strnlen(char_t *s, unsigned int n);
    5352static void     put_char(strbuf_t *buf, char_t c);
    5453static void     put_string(strbuf_t *buf, char_t *s, int len,
     
    410409/******************************************************************************/
    411410/*
    412  *      Return the length of a string limited by a given length
    413  */
    414 
    415 static int strnlen(char_t *s, unsigned int n)
    416 {
    417         unsigned int    len;
    418 
    419         len = gstrlen(s);
    420         return min(len, n);
    421 }
    422 
    423 /******************************************************************************/
    424 /*
    425411 *      Add a character to a string buffer
    426412 */
Note: See TracChangeset for help on using the changeset viewer.