Is there a way of converting a fd into a FILE* or is there a mkstemp version that returns a FILE*?
سؤال
Is there a way of "converting" a fd into a FILE* or is there a mkstemp version that returns a FILE*?
المحلول
fdopen()
is the function you are looking for.
لا تنتمي إلى StackOverflow