[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

memset (was Re: [PATCH] man7/: ffix)

From: Douglas McIlroy
Subject: memset (was Re: [PATCH] man7/: ffix)
Date: Fri, 24 Mar 2023 17:07:40 -0400

>  Can anyone justify the existence of memset(3) in libc?

Memset is in the C standard; bzero is not. End of story.

Bzero is justly deprecated on the man page I have (2008-08-06 via Red
Hat). I avoid bzero and compile with "gcc -std=c17 -Wall -pedantic
-extra" to raise a flag when I stray from the standard.

Finally, please note that groff is the wrong forum for discussing the
design of C.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]