unknownexercice
2016-08-23
0 0 0
no vote
Other
Earn points
#include<stdlib.h>
#include<stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc ,char *argv[])
{
int fd,fd2,fd3;
int i;
char buff[10];
fd=open(argv[1],O_RDONLY);
if(fd2=open(argv[2],O_WRONLY) == -1)
{
fd3=creat(argv[2], S_IRUSR | S_IWUSR);
read(fd,buff,10);
write(fd3,buff,10);
}
else
{
fd2=open(argv[2],O_TRUNC);
read(fd,buff,10);
&nbs
#include<stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc ,char *argv[])
{
int fd,fd2,fd3;
int i;
char buff[10];
fd=open(argv[1],O_RDONLY);
if(fd2=open(argv[2],O_WRONLY) == -1)
{
fd3=creat(argv[2], S_IRUSR | S_IWUSR);
read(fd,buff,10);
write(fd3,buff,10);
}
else
{
fd2=open(argv[2],O_TRUNC);
read(fd,buff,10);
&nbs
c
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment