X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fportab%2Fstrlcpy.c;h=ae2018bcf940a3c47a1cc265740c58fbff70dce8;hp=5e2c72228c1c6429d85f290abc0a4cd5e225f4c7;hb=03628dbeaf40a9de34b3eb6d5bf6dd34eed8248c;hpb=3da942e2374449248b1359222564db8f9997b090 diff --git a/src/portab/strlcpy.c b/src/portab/strlcpy.c index 5e2c7222..ae2018bc 100644 --- a/src/portab/strlcpy.c +++ b/src/portab/strlcpy.c @@ -7,8 +7,14 @@ * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. - * + */ + +#include "portab.h" + +/** + * @file * strlcpy() and strlcat() replacement functions. + * * See for details. * * Code partially borrowed from compat.c of rsync, written by Andrew @@ -16,11 +22,6 @@ * */ - -#include "portab.h" - -static char UNUSED id[] = "$Id: strlcpy.c,v 1.4 2005/02/27 09:29:13 alex Exp $"; - #include "imp.h" #include #include @@ -31,7 +32,7 @@ static char UNUSED id[] = "$Id: strlcpy.c,v 1.4 2005/02/27 09:29:13 alex Exp $"; #ifndef HAVE_STRLCAT GLOBAL size_t -strlcat( CHAR *dst, CONST CHAR *src, size_t size ) +strlcat( char *dst, const char *src, size_t size ) { /* Like strncat() but does not 0 fill the buffer and * always null terminates. */ @@ -55,7 +56,7 @@ strlcat( CHAR *dst, CONST CHAR *src, size_t size ) #ifndef HAVE_STRLCPY GLOBAL size_t -strlcpy( CHAR *dst, CONST CHAR *src, size_t size ) +strlcpy( char *dst, const char *src, size_t size ) { /* Like strncpy but does not 0 fill the buffer and * always null terminates. */