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