Sujet : Re: Something like string-streams existing in "C"?
De : bluemanedhawk (at) *nospam* invalid.invalid (BlueManedHawk)
Groupes : comp.lang.cDate : 19. Dec 2024, 14:32:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vk179b$2s9oa$1@bluemanedhawk.eternal-september.org>
References : 1
User-Agent : Betterbird (Linux)
The ‘asprintf’ subroutine is standardized by POSIX.1-2024, meaning that you can use it now and blame somebody else if it doesn't work. If you can't target POSIX, the subroutine is also _theoretically_ available through the feature-test macro ‘__STDC_WANT_LIB_EXT2__’, assuming that ‘__STDC_ALLOC_LIB__’ is a predefined macro, but gLibC does not pay attention to that for this subroutine, and which feature-test macro does induce its declaration is seemingly undocumented, though it is at least defined through ‘_DEFAULT_SOURCE’.