C ordening
This commit is contained in:
9
C/C5 and C6 Adidas/product/channel_main.c
Normal file
9
C/C5 and C6 Adidas/product/channel_main.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "channel.h"
|
||||
// add here includes, if needed
|
||||
|
||||
int channel_main(int argc, char* argv[])
|
||||
{
|
||||
//add your code here
|
||||
|
||||
return 0;
|
||||
}
|
||||
10
C/C5 and C6 Adidas/product/decode_main.c
Normal file
10
C/C5 and C6 Adidas/product/decode_main.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "decode.h"
|
||||
// add here includes, if needed
|
||||
|
||||
|
||||
int decode_main(int argc, char* argv[])
|
||||
{
|
||||
//add your code here
|
||||
|
||||
return 0;
|
||||
}
|
||||
10
C/C5 and C6 Adidas/product/encode_main.c
Normal file
10
C/C5 and C6 Adidas/product/encode_main.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "encode.h"
|
||||
// add here includes, if needed
|
||||
|
||||
|
||||
int encode_main(int argc, char* argv[])
|
||||
{
|
||||
//add your code here
|
||||
|
||||
return 0;
|
||||
}
|
||||
38
C/C5 and C6 Adidas/product/main.c
Normal file
38
C/C5 and C6 Adidas/product/main.c
Normal file
@@ -0,0 +1,38 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "encode.h"
|
||||
|
||||
extern int encode_main(int argc, char* argv[]);
|
||||
extern int channel_main(int argc, char* argv[]);
|
||||
extern int decode_main(int argc, char* argv[]);
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
if (argc < 4)
|
||||
{
|
||||
printf("Please provide file name arguments:\n");
|
||||
printf("[encode|channel|decode] inputfile outpfile\n\n");
|
||||
printf("Example:\n");
|
||||
printf("main encode input.txt output.txt\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
printf("%s: %s --> %s\n", argv[1], argv[2], argv[3]);
|
||||
|
||||
if(strcmp("encode", argv[1]) == 0)
|
||||
{
|
||||
return encode_main(argc,argv);
|
||||
}
|
||||
else if(strcmp("channel", argv[1]) == 0)
|
||||
{
|
||||
return channel_main(argc,argv);
|
||||
}
|
||||
else if(strcmp("decode", argv[1]) == 0)
|
||||
{
|
||||
return decode_main(argc,argv);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user