Subject: Re: how to correct compiler warning "implicit declaration of
To: None <henry@irm.nara.kindai.ac.jp>
From: Masao Uebayashi <uebayasi@soum.co.jp>
List: netbsd-users
Date: 03/29/2001 17:38:05
> 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

You may need to explicitly decalare function(s), that is include the
appropriate header file? How about strlcat(3)?

M

---
 |_  -|--|-
_|__ /|\/|\