I'm 46 years old and only now do I realize that there is <strings.h> and <string.h>
Create an account to leave a comment.
Already have an account?
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.
but bzero is still used right ?
And thanks for the "too young" bit ;-) at 46 I appreciate ;-)
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.
© 2023 Hackaday
Yes, delete it