Some Basic C code i wrote while learning C
Go to file
Christoph J. Scherr 5532922411 Merge branch 'master' of https://git.cscherr.de/PlexSheep/c-basic 2023-10-30 10:41:44 +01:00
src Merge branch 'master' of https://git.cscherr.de/PlexSheep/c-basic 2023-10-30 10:41:44 +01:00
.gitignore Merge branch 'master' of https://git.cscherr.de/PlexSheep/c-basic 2023-10-30 10:41:44 +01:00
CMakeLists.txt Merge branch 'master' of https://git.cscherr.de/PlexSheep/c-basic 2023-10-30 10:41:44 +01:00
LICENSE Initial commit 2022-11-24 14:43:03 +01:00
README.md Merge branch 'main' of https://github.com/PlexSheep/c-basic 2023-04-16 17:44:39 +02:00
TODO.md added dump, makefile todo 2022-12-21 19:42:45 +01:00
build.sh more basics + build stuff 2023-10-30 10:30:53 +01:00
cmake_install.cmake cmake switch part 2 2022-12-22 00:52:59 +01:00

README.md

c-basic

This Repository features C source code i wrote to learn the C programming language. Currently the most advanced program included is an unfinished implementation of the Huffman algorithm.

Some programs make use of outdated and unsafe functions such as gets() or scanf(), which should never be used. That is the case, because we were taught to use some of these in programming classes. Ideally, all uses 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.

Makefile / Compiling

I have spent some time building a CMakeLists.txt. You can compile all source code using cmake . && cmake --build ..

Note:

scanf() is not inherently unsafe, but must be handled very careful and isn't recommended by most, so i have chosen to classify it as unsafe. If you know exactly what you are doing, using scanf() seems to be acceptable. I consider the use of scanf() to be bad practice.

Mirrored

The origin of this repository is git.cscherr.de It is mirrored to github