Bug 39542 - <cstdio> doesn't contain vasprintf() and asprintf()
Summary: <cstdio> doesn't contain vasprintf() and asprintf()
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 40203 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-24 11:06 UTC by Matthias Klose
Modified: 2009-05-19 22:27 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2009-03-24 11:06:58 UTC
[forwarded from https://launchpad.net/bugs/332115]

While the documentation states that vasprintf and asprintf belong to the the <stdio.h> header, the C++ header <cstdio> doesn't contain any definition to them, thus forcing one to also #include <stdio.h>
Comment 1 Richard Biener 2009-03-24 11:20:48 UTC
These are GNU extensions not appropriate for a ISO C++ header file (the
standard lists which functions are to be made available in the std namespace).
So at most they could be added to the __gnucxx namespace?
Comment 2 Paolo Carlini 2009-03-24 11:36:02 UTC
This is definitely not a bug. Note, in our implementation <stdio.h> is included anyway from <cstdio> as an implementation detail.
Comment 3 Paolo Carlini 2009-05-19 22:27:32 UTC
*** Bug 40203 has been marked as a duplicate of this bug. ***