Exit functions in C

前端 未结 4 838
礼貌的吻别
礼貌的吻别 2021-01-17 23:40

What is the difference between exit(), _exit() and _Exit() in C?

How do I decide which to use?

On bash, <

4条回答
  •  天涯浪人
    2021-01-17 23:58

    1.exit() : it's cleanup the work like closing file descriptor, file stream and so on, 2._exit() : it's not cleanup the work like closing the file descriptor,file stream and so on

    These are the major difference of exit() and _exit().

    am i rectified ur answer

提交回复
热议问题