5 ms·
> If this were C, we would probably reach for memset Actually I was thinking about bzero(). Seeing memset() made me smile :-)
by eb0la 7y ago
> If this were C, we would probably reach for memset
Actually I was thinking about bzero().
Seeing memset() made me smile :-)
- dgellow 7y agoWould you mind you explaining what you mean by that? I don't have much C experience, and don't understand what makes you smile.
- eb0la 7y agoIt brings me memories from my old Turbo C 2.0 years (https://en.wikipedia.org/wiki/Borland_Turbo_C https://en.wikipedia.org/wiki/Borland_Turbo_C) ;-)
- lorenzhs 7y ago> The bzero() function is deprecated (marked as LEGACY in POSIX.1-2001); use memset(3) in new programs. POSIX.1-2008 removes the specification of bzero(). from the manpage on linux.
- JdeBP 7y agoNot for long. Seeing some copied-and-pasted autoconf setup, for a program that isn't even portable from Linux, valiantly checking to see whether you have a memset() function will make you despair once more. Or watching autoconf insist that on Debian Linux there is no memset() library function. * https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927705 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=927705 Come 1989, this stuff will be standardized, you know. (-:
- nwmcsween 7y agoDon't blame stove for blowing up the house?