asprintf Questions
1
Solved
Here's the situation:
We received code from an outside source that uses sprintf like strcat. Like this:
char buffer[1024];
sprintf(buffer, "Some text.");
sprintf(buffer, "%s%s",...
Farleigh asked 21/10, 2021 at 15:57
8
I have written a C program which works perfectly on linux, but when I compile it on windows, it gives me an error saying that asprintf() is undefined. It should be a part of the stdio library but i...
2
Solved
Is the GNU function asprintf (print to allocated string) thread-safe?
(IIC, basically, this boils down to the question whether malloc is thread-safe.)
Consider the example code:
#define _GNU_SOU...
Request asked 17/2, 2015 at 13:20
4
Solved
I'm trying to build python-kerberos on AIX. kerberospw.c uses a call to asprintf, but from what Google is telling me, asprintf does not exist on AIX.
I saw http://www.koders.com/c/fidAA9B130D58830...
2
Solved
I'm having a hard time understanding why you would need asprintf.
Here in the manual it says
The functions asprintf() and vasprintf() are analogs of sprintf(3) and
vsprintf(3), except that the...
1
© 2022 - 2024 — McMap. All rights reserved.