다음은 구동 프로그램입니다.
#include
#include
#include
#include
#include
#include
typedef struct _song
{
int a;
char b[8];
} t_song;
t_song *p_song;
void main(int argc, char **argv)
{
int input, output, count = 3, i, size;
size_t filesize;
void *source, *target;
char *endchar = '\0';
if(argc != 2)
{
fprintf(stderr, "usage copyfile source\n");
exit(1);
}
if((input = open(argv[1], O_RDWR| O_CREAT | O_TRUNC, 0666)) == -
1)