Which means you're too young to have experienced the dual standards of BSD and SysV library routines. Nowadays the SysV str* and mem* routines prevail and the BSD b* and *index routines in <strings.h> are deprecated.
bzero can be replaced by memset, and the man page even recommends it. As for the extra argument, I wouldn't be surprised if a compiler can optimise a memset with a constant byte of 0.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Pcb big piano
Are you sure? yes | no
Which means you're too young to have experienced the dual standards of BSD and SysV library routines. Nowadays the SysV str* and mem* routines prevail and the BSD b* and *index routines in <strings.h> are deprecated.
Are you sure? yes | no
but bzero is still used right ?
And thanks for the "too young" bit ;-) at 46 I appreciate ;-)
Are you sure? yes | no
bzero can be replaced by memset, and the man page even recommends it. As for the extra argument, I wouldn't be surprised if a compiler can optimise a memset with a constant byte of 0.
Are you sure? yes | no