diff --git a/Zadania_domowe/zajecia9/Makefile b/Zadania_domowe/zajecia9/Makefile new file mode 100644 index 0000000..fcb3143 --- /dev/null +++ b/Zadania_domowe/zajecia9/Makefile @@ -0,0 +1,3 @@ +dodaj.tar.gz: dodajz + tar cvzf dodaj.tar.gz ./dodajz + diff --git a/Zadania_domowe/zajecia9/dodaj b/Zadania_domowe/zajecia9/dodaj new file mode 100755 index 0000000..8ea34af Binary files /dev/null and b/Zadania_domowe/zajecia9/dodaj differ diff --git a/Zadania_domowe/zajecia9/dodaj.tar.gz b/Zadania_domowe/zajecia9/dodaj.tar.gz new file mode 100644 index 0000000..ae639bd Binary files /dev/null and b/Zadania_domowe/zajecia9/dodaj.tar.gz differ diff --git a/Zadania_domowe/zajecia9/dodajz/Makefile b/Zadania_domowe/zajecia9/dodajz/Makefile new file mode 100644 index 0000000..838c891 --- /dev/null +++ b/Zadania_domowe/zajecia9/dodajz/Makefile @@ -0,0 +1,4 @@ +dodaj: dodaj.c + gcc -Wall -ansi -o ./../dodaj dodaj.c +clean: + rm ./../dodaj diff --git a/Zadania_domowe/zajecia9/dodajz/dodaj.c b/Zadania_domowe/zajecia9/dodajz/dodaj.c new file mode 100644 index 0000000..6cad453 --- /dev/null +++ b/Zadania_domowe/zajecia9/dodajz/dodaj.c @@ -0,0 +1,10 @@ +#include +#include + +int main(int argc, char const *argv[]) { + int a, b; + a=atoi(argv[1]); + b=atoi(argv[2]); + printf("%i\n", a+b); + return 0; +}