Is there a way of converting a fd into a FILE* or is there a mkstemp version that returns a FILE*?

StackOverflow https://stackoverflow.com/questions/4487298

  •  11-10-2019
  •  | 
  •  

سؤال

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top