[LTP] [RFC PATCH 2/3] Add more missing <string.h> and <strings.h> includes
Petr Vorel
pvorel@suse.cz
Fri Apr 12 11:46:46 CEST 2019
Hi Cyril, Zhengwang,
> > > Agree, that'd be the easiest way :). NOTE: not sure what requires that, but
> > > sometimes is <strings.h> needed as well.
> > As I know, calls likes str*, mem*, such as, strncpy, memset, requires
> > <string.h>,?? but bzero requires <strings.h>. Fortunately <strings.h> are
> > not used as often as <string.h>. See my another review thread. :-)
> bzero() has been deprecated for quite some time, ideally we should
> replace it with memset().
That explains, why <strings.h> is not much used nowadays.
Kind regards,
Petr
More information about the ltp
mailing list