Who can find the hidden error of this bad applet-Linux general technology-Linux programming and kernel information. The following is a detailed description. # Include
# Include
# Include
# Inlcude
# Include
Main (int argc, char * argv [])
{
Int val, m;
Char buf [18] = "hellow my world ";
Char auf [18];
If (argc! = 2) {printf ("please put one file name"); exit (1 );}
If (val = open (argv [1], O_RDWR | O_EXCL | O_CREAT, S_IRWXU) <0) {printf ("open error"); perror ("dd ");}
If (m = write (val, buf, 14 )! = 14) exit (1); printf ("% d", m );
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.