[splint-discuss] bzero() is not recongnized

Richard A. O'Keefe ok at cs.otago.ac.nz
Thu Mar 27 16:25:04 PST 2008


On 27 Mar 2008, at 6:55 pm, Vishal Bayskar wrote:

> Dear All,
>
>             There is a problem in using bzero() when I run splint  
> command it is not recognizing the bzero
>             And following warning is generated by splint tool
>
> dodomo.c:1312:5 Unrecognized identifier: bzero
> Identifier used in code has not been declared. (Use -unrecog to  
> inhibit
> warning)
>
>
> But there is no warning is being shown when I use memset() function
>
> And string.h header file is also included in the code as bzero() is  
> present in the string.h
>

memset() is a standard C function.
bzero() is not.
splint is using its own headers to ensure standards conformance.
Why isn't bzero standard?  Because it *isn't* universally available.

#undef bzero
#define bzero(dst, len) (void)memset(dst, 0, len)

and the problem will go away.


>
> Please help me in resolving the problem.
>
> Thanks in Advance
>
>
> Regards
>
> Vishal Bayskar
>
>
> _______________________________________________
> splint-discuss mailing list
> splint-discuss at mail.cs.virginia.edu
> http://www.cs.virginia.edu/mailman/listinfo/splint-discuss

--
Te Reo Engarihi is a taonga of Te Iwi Pakeha,
ergo we should keep it pure, sans mélange, ruat caelum.






More information about the splint-discuss mailing list