🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3142

Re: gcc and NULL function pointers.

#3142
From: Doug Gwyn
Date: Sat, 15 Jun 1991 17:33
6 lines
795 bytes
In article <EE-B=O2@xds13.ferranti.com> peter@ficc.ferranti.com (Peter da Silva) writes:
>	execl("/bin/sh", "sh", "-c", "echo", NULL);
>(which is a common idiom in UNIX source groups) ...

A common INCORRECT idiom!  This error is well known and has been discussed
to death, both on Usenet and in C programming textbooks and style guides.
Technical Details
Message-ID: <16418@smoke.brl.mil>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!yale.edu!cmcl2!adm!smoke!gwyn
References: <1991Jun4.012914.25418@tkou02.enet.dec.com> <4641@inews.intel.com> <EE-B=O2@xds13.ferranti.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!yale.edu!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.brl.mil (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: gcc and NULL function pointers.
Message-ID: <16418@smoke.brl.mil>
Date: 15 Jun 91 17:33:40 GMT
References: <1991Jun4.012914.25418@tkou02.enet.dec.com> <4641@inews.intel.com> <EE-B=O2@xds13.ferranti.com>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 6