Changeset 5da60b9 in rtems


Ignore:
Timestamp:
Jun 12, 2007, 7:12:29 AM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
033793f4
Parents:
61159ed
Message:

Eliminate my_strlcpy.

Location:
cpukit/shttpd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/shttpd/defs.h

    r61159ed r5da60b9  
    375375 * string.c
    376376 */
     377#ifndef HAVE_STRLCPY
    377378extern void     my_strlcpy(register char *, register const char *, size_t);
     379#else
     380#include <string.h>
     381#define my_strlcpy(d,s,l) strlcpy(d,s,l)
     382#endif
     383
    378384extern int      my_strncasecmp(register const char *,
    379385                register const char *, size_t);
     386
    380387#ifndef HAVE_STRNDUP
    381388extern char     *my_strndup(const char *ptr, size_t len);
  • cpukit/shttpd/string.c

    r61159ed r5da60b9  
    1111#include "defs.h"
    1212
     13#ifndef HAVE_STRLCPY
    1314void
    1415my_strlcpy(register char *dst, register const char *src, size_t n)
     
    1819        *dst = '\0';
    1920}
     21#endif
    2022
    2123int
Note: See TracChangeset for help on using the changeset viewer.