c-basic/README.md

24 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2022-11-24 14:43:03 +01:00
# c-basic
2022-11-26 00:11:32 +01:00
This Repository features C source code i wrote to learn the C programming language. Currently the most advanced program included is an
2022-11-26 21:53:56 +01:00
unfinished implementation of the Huffman algorithm.
2022-11-25 23:09:40 +01:00
2022-11-26 00:10:35 +01:00
Some programs make use of outdated and unsafe functions such as `gets()` or `scanf()`, which **should never be used**.
2022-11-26 21:53:56 +01:00
That is the case, because we were taught to use some of these in programming classes. Ideally, all uses
2022-11-25 23:09:40 +01:00
of these unsafe functions should include a comment explaining why this is bad and also include and implemented
alternative, but that may not always be the case.
All code in this Repository was written on and for a Linux x86_64 system. It might not work on other systems.
2022-11-26 00:10:35 +01:00
2022-11-26 21:53:56 +01:00
## Makefile / Compiling
2022-12-22 01:03:15 +01:00
I have spent some time building a CMakeLists.txt. You can compile all source code using `cmake . && cmake --build .`.
2022-11-26 21:53:56 +01:00
2022-11-26 00:10:35 +01:00
### Note:
`scanf()` is not inherently unsafe, but must be handled very careful and isn't recommended by most, so i have
2023-01-29 22:45:29 +01:00
chosen to classify it as unsafe. If you know exactly what you are doing, using `scanf()` seems to be acceptable.
2022-11-26 00:10:35 +01:00
I consider the use of `scanf()` to be bad practice.
2023-04-16 17:43:49 +02:00
# Mirrored
The origin of this repository is [git.cscherr.de](https://git.cscherr.de/PlexSheep/c-basic.git)
It is mirrored to [github](https://github.com/PlexSheep/c-basic)