Subject: Re: how to correct compiler warning "implicit declaration of function ..."
To: Henry Nelson <henry@irm.nara.kindai.ac.jp>
From: None <mcmahill@mtl.mit.edu>
List: netbsd-users
Date: 03/29/2001 07:39:03
#include <string.h>

-Dan

On Thu, 29 Mar 2001, Henry Nelson wrote:

> Keep getting from the compiler (egcs-1.1.1 on NetBSD1.4.2):
>      "warning: implicit declaration of function `strlcat'"  (or `strlcpy')
> 
> The offending code looks like:
>      "strlcat(logformat, argv[i], sizeof(logformat));"
>      (or    "strlcpy(statefn, optarg, sizeof(statefn));")
> 
> How would you tweak the code to avoid the warning?  TIA
> 
> henry nelson
>