source:
rtems/testsuites/libtests/POSIX/write.c
@
60d47ab
Last change on this file since 60d47ab was 60d47ab, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/02/09 at 15:00:05 | |
---|---|
|
|
File size: 369 bytes |
Line | |
---|---|
1 | /* |
2 | * Copyright (c) 2009 by |
3 | * Ralf Corsépius, Ulm, Germany. All rights reserved. |
4 | * |
5 | * Permission to use, copy, modify, and distribute this software |
6 | * is freely granted, provided that this notice is preserved. |
7 | */ |
8 | |
9 | #include <unistd.h> |
10 | |
11 | int |
12 | main (void) |
13 | { |
14 | char string[] = "1234"; |
15 | size_t count = 4; |
16 | ssize_t ret; |
17 | |
18 | ret = write (0, &string, count); |
19 | |
20 | return 0; |
21 | } |
Note: See TracBrowser
for help on using the repository browser.