DragonFly BSD
DragonFly submit List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: /usr/src/lib/libc/string/strlcpy.c ANSI function declaration


From: Liam J Foy <liamfoy@xxxxxxxxxxxxx>
Date: Sun, 19 Dec 2004 19:53:16 +0000

On Sun, Dec 19, 2004 at 11:53:47AM +0000, Steve Mynott wrote:
> --- strlcpy.c.orig      2004-10-26 17:10:37.000000000 +0100
> +++ strlcpy.c   2004-12-19 11:50:17.000000000 +0000
> @@ -39,10 +39,8 @@
>   * will be copied.  Always NUL terminates (unless siz == 0).
>   * Returns strlen(src); if retval >= siz, truncation occurred.
>   */
> -size_t strlcpy(dst, src, siz)
> -       char *dst;
> -       const char *src;
> -       size_t siz;
> +size_t
> +strlcpy(char *dst, const char *src, size_t siz)
>  {
>         char *d = dst;
>         const char *s = src;

Great, thanks. I will take care of this.

-- 
- Liam J. Foy
liamfoy@xxxxxxxxxxxxx
New wind is going to find your sail...



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]