int main() { if ((write(1, “Here is some data\n”, 18)) != 18) write(2, “A write error has occurred on file descriptor 1\n”,46); exit(0); }...">
Home » Source Code » simple_write.c

simple_write.c

dailove1705
2013-10-30 23:40:55
The author
View(s):
Download(s): 0
Point (s): 1 
Category Category:
Linux programmingLinux programming CC

Description

space:nowrap;">int main()
{
if ((write(1, “Here is some data\n”, 18)) != 18)
write(2, “A write error has occurred on file descriptor 1\n”,46);
exit(0);
}
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
01.97 kB
.DS_Store6.00 kB2013-05-17|16:55
01.97 kB
01.97 kB
._.DS_Store82.00 B2013-05-17|16:55
01.97 kB
lockfile.txt46.00 B2003-10-25|12:35
01.97 kB
._lockfile.txt202.00 B2003-10-25|12:35
LockingExample.java1.78 kB2013-01-04|15:39
._LockingExample.java202.00 B2013-01-04|15:39
README789.00 B2003-10-25|13:53
._README202.00 B2003-10-25|13:53
01.97 kB
file1.txt32.00 B2013-01-08|15:01
file3.txt33.00 B2013-01-08|15:01
01.97 kB
DNSLookUp.java693.00 B2013-01-08|15:50
01.97 kB
._DNSLookUp.java202.00 B2013-01-08|15:50
01.97 kB
Makefile154.00 B2012-12-17|15:28
simple.c549.00 B2012-12-17|15:29
01.97 kB
DateClient.java711.00 B2012-12-17|15:50
01.97 kB
._DateClient.java202.00 B2012-12-17|15:50
DateServer.java811.00 B2012-12-17|15:50
._DateServer.java202.00 B2012-12-17|15:50
fork-question-1.c443.00 B2012-12-17|16:05
fork-question-2.c379.00 B2012-12-17|16:08
newproc-posix.c758.00 B2012-12-17|15:35
._newproc-posix.c202.00 B2012-12-17|15:35
newproc-win32.c1.38 kB2012-12-17|15:37
._newproc-win32.c202.00 B2012-12-17|15:37
shm-posix-consumer.c1.01 kB2012-12-17|17:29
shm-posix-producer.c1.30 kB2012-12-17|17:30
simple-shell.c710.00 B2012-12-17|18:16
unix_pipe.c1.19 kB2012-12-17|15:53
._unix_pipe.c202.00 B2012-12-17|15:53
win32-pipe-child.c755.00 B2012-12-17|15:54
._win32-pipe-child.c202.00 B2012-12-17|15:54
win32-pipe-parent.c2.18 kB2012-12-17|15:53
._win32-pipe-parent.c202.00 B2012-12-17|15:53
01.97 kB
Driver.java1.14 kB2012-12-19|15:45
01.97 kB
._Driver.java202.00 B2012-12-19|15:45
openmp.c549.00 B2012-12-19|16:01
thrd-posix.c1.37 kB2012-12-19|15:47
._thrd-posix.c202.00 B2012-12-19|15:47
thrd-win32.c1.04 kB2012-12-19|15:47
._thrd-win32.c202.00 B2012-12-19|15:47
01.97 kB
posix-sem.c1.03 kB2013-01-03|14:39
01.97 kB
posix-rt.c1.46 kB2013-01-04|14:35
01.97 kB
._posix-rt.c202.00 B2013-01-04|14:35
posix-sched.c1.48 kB2013-01-04|14:41
._posix-sched.c202.00 B2013-01-04|14:41
01.97 kB
addresses.txt5.69 kB2010-03-30|16:33
01.97 kB
._addresses.txt202.00 B2010-03-30|16:33
BACKING_STORE.bin64.00 kB2009-12-21|17:31
correct.txt54.91 kB2008-11-24|20:05
01.97 kB
consumer.c1.22 kB2013-01-04|15:07
01.97 kB
._consumer.c202.00 B2013-01-04|15:07
producer.c1.35 kB2013-01-04|15:07
._producer.c202.00 B2013-01-04|15:07
README691.00 B2013-01-04|15:06
._README202.00 B2013-01-04|15:06
temp.txt3.00 B2005-01-04|14:47
._temp.txt202.00 B2005-01-04|14:47
...
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
xxx97
2018-10-23

thank you!

droX
2019-01-15

short but interesting

droX
2019-01-15

short but interesting

notjesus
2020-03-11

Let me know write to what

  • 1
  • Page 1
  • Total 1

simple_write.c (74.15 kB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D