From 1107b46e5e276205938c0ccaee21f35c96080f16 Mon Sep 17 00:00:00 2001 From: teridax Date: Fri, 21 Apr 2023 12:39:00 +0200 Subject: [PATCH] updated license information --- .idea/.gitignore | 8 +++++++ .idea/C-Programming.iml | 9 ++++++++ .idea/misc.xml | 6 ++++++ .idea/modules.xml | 8 +++++++ .idea/vcs.xml | 6 ++++++ Datastructures/src/binheap/binheap.c | 19 +++++++++++++++++ Datastructures/src/binheap/binheap.h | 18 ++++++++++++++++ Datastructures/src/bst/bst.c | 19 +++++++++++++++++ Datastructures/src/bst/bst.h | 18 ++++++++++++++++ Datastructures/src/hashtable/hashtable.c | 18 ++++++++++++++++ Datastructures/src/hashtable/hashtable.h | 19 +++++++++++++++++ Datastructures/src/main.c | 19 +++++++++++++++++ Datastructures/src/utils/arrays.c | 19 +++++++++++++++++ Datastructures/src/utils/arrays.h | 19 +++++++++++++++++ README.md | 1 - Searching/src/bench.c | 19 +++++++++++++++++ Searching/src/bench.h | 19 +++++++++++++++++ Searching/src/main.c | 19 +++++++++++++++++ Searching/src/search.c | 19 +++++++++++++++++ Searching/src/search.h | 19 +++++++++++++++++ Sorting/src/arrays.c | 19 +++++++++++++++++ Sorting/src/arrays.h | 19 +++++++++++++++++ Sorting/src/bench.c | 19 +++++++++++++++++ Sorting/src/bench.h | 19 +++++++++++++++++ Sorting/src/main.c | 19 +++++++++++++++++ Sorting/src/sort.h | 19 +++++++++++++++++ Sorting/src/sort/bogo.c | 19 +++++++++++++++++ Sorting/src/sort/bozo.c | 19 +++++++++++++++++ Sorting/src/sort/bubble.c | 19 +++++++++++++++++ Sorting/src/sort/gnome.c | 19 +++++++++++++++++ Sorting/src/sort/insertion.c | 19 +++++++++++++++++ Sorting/src/sort/merge.c | 19 +++++++++++++++++ Sorting/src/sort/quick.c | 19 +++++++++++++++++ Sorting/src/sort/radix.c | 19 +++++++++++++++++ Sorting/src/sort/selection.c | 19 +++++++++++++++++ Sorting/src/sort/shell.c | 19 +++++++++++++++++ Zinsrechner/src/calculator/calculator.c | 27 +++++++++++++++++------- Zinsrechner/src/calculator/calculator.h | 19 +++++++++++++++++ Zinsrechner/src/main.c | 19 +++++++++++++++++ Zinsrechner/src/options/options.c | 19 +++++++++++++++++ Zinsrechner/src/options/options.h | 19 +++++++++++++++++ 41 files changed, 699 insertions(+), 9 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/C-Programming.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/C-Programming.iml b/.idea/C-Programming.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/C-Programming.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..5e4b69e --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Datastructures/src/binheap/binheap.c b/Datastructures/src/binheap/binheap.c index 5a10ba4..12e6f1d 100644 --- a/Datastructures/src/binheap/binheap.c +++ b/Datastructures/src/binheap/binheap.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * a simple binary heap + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "binheap.h" #include diff --git a/Datastructures/src/binheap/binheap.h b/Datastructures/src/binheap/binheap.h index f442eb1..caa6457 100644 --- a/Datastructures/src/binheap/binheap.h +++ b/Datastructures/src/binheap/binheap.h @@ -1,3 +1,21 @@ +/** + * Generic test class for declaring + * a simple binary heap + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ #ifndef _BINHEAP_H_ #define _BINHEAP_H_ diff --git a/Datastructures/src/bst/bst.c b/Datastructures/src/bst/bst.c index 27e7874..db2d31a 100644 --- a/Datastructures/src/bst/bst.c +++ b/Datastructures/src/bst/bst.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * a simple binary search tree + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "bst.h" #include diff --git a/Datastructures/src/bst/bst.h b/Datastructures/src/bst/bst.h index 7ebef33..656ff22 100644 --- a/Datastructures/src/bst/bst.h +++ b/Datastructures/src/bst/bst.h @@ -1,3 +1,21 @@ +/** + * Generic test class for declaring + * a simple binary search tree + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ #ifndef _BST_H_ #define _BST_H_ diff --git a/Datastructures/src/hashtable/hashtable.c b/Datastructures/src/hashtable/hashtable.c index b3e1511..2b0fd4b 100644 --- a/Datastructures/src/hashtable/hashtable.c +++ b/Datastructures/src/hashtable/hashtable.c @@ -1,3 +1,21 @@ +/** + * Generic test class for implementing + * a simple hashmap + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ #include "hashtable.h" diff --git a/Datastructures/src/hashtable/hashtable.h b/Datastructures/src/hashtable/hashtable.h index 4591433..ca2e9cf 100644 --- a/Datastructures/src/hashtable/hashtable.h +++ b/Datastructures/src/hashtable/hashtable.h @@ -1,3 +1,22 @@ +/** + * Generic test class for declaring + * a simple hashmap + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #ifndef _HASHTABLE_H_ #define _HASHTABLE_H_ diff --git a/Datastructures/src/main.c b/Datastructures/src/main.c index 935c418..f220f32 100644 --- a/Datastructures/src/main.c +++ b/Datastructures/src/main.c @@ -1,3 +1,22 @@ +/** + * Generic test class for testing + * various data structures + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "binheap/binheap.h" #include "hashtable/hashtable.h" #include "bst/bst.h" diff --git a/Datastructures/src/utils/arrays.c b/Datastructures/src/utils/arrays.c index c1b4a3b..82779f3 100644 --- a/Datastructures/src/utils/arrays.c +++ b/Datastructures/src/utils/arrays.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * various utility functions for operating on integer arrays + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "arrays.h" #ifdef VISUALIZE diff --git a/Datastructures/src/utils/arrays.h b/Datastructures/src/utils/arrays.h index dfb8a34..fed4ecc 100644 --- a/Datastructures/src/utils/arrays.h +++ b/Datastructures/src/utils/arrays.h @@ -1,3 +1,22 @@ +/** + * Generic test class for declaring + * various utility functions for operating on integer arrays + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #ifndef _ARRAYS_H_ #define _ARRAYS_H_ diff --git a/README.md b/README.md index d6570d2..b0e54c1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ # C-Programming - diff --git a/Searching/src/bench.c b/Searching/src/bench.c index 70ae475..9cdd2ab 100644 --- a/Searching/src/bench.c +++ b/Searching/src/bench.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * benchmarking functions for searching algorithms + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "bench.h" void benchmark_search(bool (*algorithm)(), const char* name) { diff --git a/Searching/src/bench.h b/Searching/src/bench.h index 9349c3e..a305799 100644 --- a/Searching/src/bench.h +++ b/Searching/src/bench.h @@ -1,3 +1,22 @@ +/** + * Generic test class for declaring + * benchmarking functions for searching algorithms + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #ifndef _BENCH_H_ #define _BENCH_H_ diff --git a/Searching/src/main.c b/Searching/src/main.c index 7caa7ff..cf73d09 100644 --- a/Searching/src/main.c +++ b/Searching/src/main.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing and testing + * various search algorithms + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "search.h" #include "bench.h" diff --git a/Searching/src/search.c b/Searching/src/search.c index 64dc46e..777ac16 100644 --- a/Searching/src/search.c +++ b/Searching/src/search.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * searching algorithms + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "search.h" #define MAX(i, j) (((i) > (j)) ? (i) : (j)) diff --git a/Searching/src/search.h b/Searching/src/search.h index a450299..5c7df8e 100644 --- a/Searching/src/search.h +++ b/Searching/src/search.h @@ -1,3 +1,22 @@ +/** + * Generic test class for declaring + * searching algorithms + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #ifndef _SEARCH_H_ #define _SEARCH_H_ diff --git a/Sorting/src/arrays.c b/Sorting/src/arrays.c index ec1f863..a357168 100644 --- a/Sorting/src/arrays.c +++ b/Sorting/src/arrays.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * various utility functions operating on integer arrays + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "arrays.h" #include "sort.h" #include diff --git a/Sorting/src/arrays.h b/Sorting/src/arrays.h index 49b175b..4e64cf3 100644 --- a/Sorting/src/arrays.h +++ b/Sorting/src/arrays.h @@ -1,3 +1,22 @@ +/** + * Generic test class for declaring + * various utility functions operating on integer arrays + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #ifndef _ARRAYS_H_ #define _ARRAYS_H_ diff --git a/Sorting/src/bench.c b/Sorting/src/bench.c index d13ff6c..83a9556 100644 --- a/Sorting/src/bench.c +++ b/Sorting/src/bench.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * various utility functions for benchmarking sorting functions + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "bench.h" #include "arrays.h" #include diff --git a/Sorting/src/bench.h b/Sorting/src/bench.h index 3825a6e..27ce9d1 100644 --- a/Sorting/src/bench.h +++ b/Sorting/src/bench.h @@ -1,3 +1,22 @@ +/** + * Generic test class for declaring + * various utility functions for benchmarking sorting functions + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #ifndef _BENCH_H_ #define _BENCH_H_ diff --git a/Sorting/src/main.c b/Sorting/src/main.c index 05f7512..8495b2a 100644 --- a/Sorting/src/main.c +++ b/Sorting/src/main.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * functions for benchmarking sorting functions + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "arrays.h" #include "bench.h" #include "sort.h" diff --git a/Sorting/src/sort.h b/Sorting/src/sort.h index e9be7f0..df971ad 100644 --- a/Sorting/src/sort.h +++ b/Sorting/src/sort.h @@ -1,3 +1,22 @@ +/** + * Generic test class for declaring + * various utility functions for implementing sorting algorithms + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #ifndef _SORT_H_ #define _SORT_H_ diff --git a/Sorting/src/sort/bogo.c b/Sorting/src/sort/bogo.c index 8ca9f2a..b004f05 100644 --- a/Sorting/src/sort/bogo.c +++ b/Sorting/src/sort/bogo.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * bogo sort + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "../arrays.h" #include "../sort.h" diff --git a/Sorting/src/sort/bozo.c b/Sorting/src/sort/bozo.c index 12534fb..2d8c57f 100644 --- a/Sorting/src/sort/bozo.c +++ b/Sorting/src/sort/bozo.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * bozo sort + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "../arrays.h" #include "../sort.h" diff --git a/Sorting/src/sort/bubble.c b/Sorting/src/sort/bubble.c index bb172bd..6bc82b8 100644 --- a/Sorting/src/sort/bubble.c +++ b/Sorting/src/sort/bubble.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * bubble sort + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "../arrays.h" #include "../sort.h" diff --git a/Sorting/src/sort/gnome.c b/Sorting/src/sort/gnome.c index 8d64fe3..b73bc53 100644 --- a/Sorting/src/sort/gnome.c +++ b/Sorting/src/sort/gnome.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * gnome sort + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "../arrays.h" #include "../sort.h" diff --git a/Sorting/src/sort/insertion.c b/Sorting/src/sort/insertion.c index c968b71..2a25509 100644 --- a/Sorting/src/sort/insertion.c +++ b/Sorting/src/sort/insertion.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * insertion sort + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "../arrays.h" #include "../sort.h" diff --git a/Sorting/src/sort/merge.c b/Sorting/src/sort/merge.c index a51464b..8a07135 100644 --- a/Sorting/src/sort/merge.c +++ b/Sorting/src/sort/merge.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * merge sort + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "../arrays.h" #include "../sort.h" diff --git a/Sorting/src/sort/quick.c b/Sorting/src/sort/quick.c index eef8ef6..5077a62 100644 --- a/Sorting/src/sort/quick.c +++ b/Sorting/src/sort/quick.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * quick sort + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "../arrays.h" #include "../sort.h" diff --git a/Sorting/src/sort/radix.c b/Sorting/src/sort/radix.c index ca52203..6465e1f 100644 --- a/Sorting/src/sort/radix.c +++ b/Sorting/src/sort/radix.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * radix sort + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "../arrays.h" #include "../sort.h" diff --git a/Sorting/src/sort/selection.c b/Sorting/src/sort/selection.c index fbb0721..2952d14 100644 --- a/Sorting/src/sort/selection.c +++ b/Sorting/src/sort/selection.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * selection sort + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "../arrays.h" #include "../sort.h" diff --git a/Sorting/src/sort/shell.c b/Sorting/src/sort/shell.c index ba3c354..b8b6259 100644 --- a/Sorting/src/sort/shell.c +++ b/Sorting/src/sort/shell.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * shell sort + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "../arrays.h" #include "../sort.h" diff --git a/Zinsrechner/src/calculator/calculator.c b/Zinsrechner/src/calculator/calculator.c index 4afaddb..005597d 100644 --- a/Zinsrechner/src/calculator/calculator.c +++ b/Zinsrechner/src/calculator/calculator.c @@ -1,13 +1,24 @@ +/** + * Generic test class for implementing + * a basic interest growth calculator + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "calculator.h" -/** - * @brief - * - * @param interestRate - * @param growthRate - * @return true - * @return false - */ bool input_rate_and_growth(double *interestRate, double *growthRate) { do { diff --git a/Zinsrechner/src/calculator/calculator.h b/Zinsrechner/src/calculator/calculator.h index f285d36..457ac44 100644 --- a/Zinsrechner/src/calculator/calculator.h +++ b/Zinsrechner/src/calculator/calculator.h @@ -1,3 +1,22 @@ +/** + * Generic test class for declaring + * a basic interest growth calculator + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #ifndef _CALCULATOR_H_ #define _CALCULATOR_H_ diff --git a/Zinsrechner/src/main.c b/Zinsrechner/src/main.c index 423136c..dec7f30 100644 --- a/Zinsrechner/src/main.c +++ b/Zinsrechner/src/main.c @@ -1,3 +1,22 @@ +/** + * Generic test class for testing + * a simple growth calculator according to the provided task by the teacher + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "options/options.h" #include "calculator/calculator.h" #include diff --git a/Zinsrechner/src/options/options.c b/Zinsrechner/src/options/options.c index 136d15d..92bd6e3 100644 --- a/Zinsrechner/src/options/options.c +++ b/Zinsrechner/src/options/options.c @@ -1,3 +1,22 @@ +/** + * Generic test class for implementing + * various functions for managing student data + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #include "options.h" // name of the file to write to on --export diff --git a/Zinsrechner/src/options/options.h b/Zinsrechner/src/options/options.h index c41121d..8cbcdda 100644 --- a/Zinsrechner/src/options/options.h +++ b/Zinsrechner/src/options/options.h @@ -1,3 +1,22 @@ +/** + * Generic test class for declaring + * various functions for managing student data + * _ _ _ _ + * __ ___ __(_) |_| |_ ___ _ __ | |__ _ _ + * \ \ /\ / / '__| | __| __/ _ \ '_ \ | '_ \| | | | + * \ V V /| | | | |_| || __/ | | | | |_) | |_| | + * \_/\_/ |_| |_|\__|\__\___|_| |_| |_.__/ \__, | + * |___/ + * ____ __ __ _ + * / ___|_ _____ _ __ \ \ / /__ __ _ ___| | + * \___ \ \ / / _ \ '_ \ \ \ / / _ \ / _` |/ _ \ | + * ___) \ V / __/ | | | \ V / (_) | (_| | __/ | + * |____/ \_/ \___|_| |_| \_/ \___/ \__, |\___|_| + * |___/ + * Licensed under the GPLv2 License, Version 2.0 (the "License"); + * Copyright (c) Sven Vogel + */ + #ifndef _OPTIONS_H_ #define _OPTIONS_H_