/***** exit1.c ******/#include<stdio.h>#include<stdlib.h>main(){ printf("output begin /n"); printf("content in buffer"); exit(0);}Use the exit() function to write the contents of the file buffer back to the file before ending the process. This is a safer way to exit.
The following _exit() function does not process the buffer and clears it directly before ending the process, so the risk is relatively large.
/***** exit2.c ******/#include<stdio.h>#include<unistd.h>main(){printf(" Output begin/n");printf("content in buffer");_exit(0);}Run result:
Above:
output begin content in buffer
The following:
output begin
This article describes the implementation of malloc and its malloc in the heap expansion operation,
The Windows 7 and Ubantu dual system are installed on the computer. Since the Linux system
The installation environment is Ubuntu13.10 version i386, the nginx server and mysql server have bee
Environment: REDHAT 51. Check if VNC is installed: rpm -qa vnc-server vnc-server-4.1.2-9.el5
Linux view and terminate process
RedHat configuration image media is yum source
Introduction to vim installation and basic configuration under Ubuntu
Four shifting engines for the Googles BBR TCP congestion control algorithm
Linux--Backup and Restore--tar Command
Ubuntu configuration SSH password-free login
Usage Guide for Extracting Text Using the Cut Command in Linux
How does Linux extend the XFS file system?
Linux how to modify the ip address, host name and other information
Win10 installation application prompt error code 0x80070490 how to solve?
Win8.1 remote desktop too card processing method
Windows10 activation hidden login interface graphic tutorial
Experience sharing of 7-layer soft load under Windows (4)
Win10 Spartan browser to open the way to save the location
Win7 is not affected, Microsoft Win8.1 Update fix patch
Win10 upgrade $Windows.~BT folder deleted the solution
Win7 system screen color calibration tool use method graphic tutorial
Win10 always stuck, what to do
Win8.1 computer automatically restart after the shutdown solution