Paste-bin.xyz
Archive
Sign In
Login
Register
Username
Current Password
Keep me signed in.
Username
Full Name
Email
New Password
C
37
readwrite
Guest on 14th July 2022 02:07:06 AM
#include <unistd.h>
#include <stdlib.h>
int
main
(
void
)
{
char
c
;
while
(
read
(
0
,&
c
,
1
)
!=
0
)
write
(
1
,
&
c
,
1
)
;
exit
(
0
)
;
}
Raw Paste
#include
#include
int main(void){ char c; while (read(0,&c,1) != 0) write(1, &c, 1); exit(0); }
Login
or
Register
to edit or fork this paste. It's free.