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...
Liederman asked 20/10, 2016 at 16:34

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...
Doronicum asked 4/2, 2011 at 14:39

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...
Carri asked 5/10, 2012 at 13:5
1

© 2022 - 2024 — McMap. All rights reserved.