Article View: comp.std.c++
Article #3167When can definitions of library functions be provided by a program?
From: Michael Greenberg
Date: Wed, 31 Jan 1996 20:44
Date: Wed, 31 Jan 1996 20:44
26 lines
1471 bytes
1471 bytes
I'm trying to figure out under what circumstances a program can supply
a definition for a library function. Is it the case that a program
cannot supply a definition for any library function except for those
listed in 17.3.3.4 (new & delete with various signatures)?
In other words (typos not withstanding), is
#include <string.h>
int std::strlen(const char*) { ... }
legal? What if <string.h> is not included?
(As an aside, what's the 'C' standard have to say about this?)
Thanks,
--
Michael Greenberg email: mgreenberg@scr.siemens.com
Siemens Corporate Research phone: 609-734-3347
755 College Road East fax: 609-734-6565
Princeton, NJ 08540
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<DM2Bv9.C7p@scr.siemens.com>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: mlg@scr.siemens.com (Michael Greenberg) Newsgroups: comp.std.c++ Subject: When can definitions of library functions be provided by a program? Date: 31 Jan 1996 20:44:58 GMT Organization: Siemens Corporate Research, Princeton, NJ Sender: news@scr.siemens.com (NeTnEwS) Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <DM2Bv9.C7p@scr.siemens.com> NNTP-Posting-Host: taumet.eng.sun.com X-Nntp-Posting-Host: tucker.scr.siemens.com Originator: clamage@taumet