C Fundamentals: Core CS Concepts by Hatim El HassakC Fundamentals: Core CS Concepts by Hatim El Hassak

C Fundamentals: Core CS Concepts

Portfolio project
Hatim El Hassak

C Fundamentals

A collection of fundamental computer science implementations in C.
This repository demonstrates core CS concepts including algorithms, data structures, and systems programming with clean, well-documented code.

๐Ÿ“ Structure

c-fundamentals/
โ”œโ”€โ”€ algorithms/
โ”‚ โ”œโ”€โ”€ sorting/ # Selection sort implementation
โ”‚ โ””โ”€โ”€ encryption/ # Caesar cipher with frequency analysis
โ”œโ”€โ”€ systems/
โ”‚ โ””โ”€โ”€ sysinfo/ # Cross-platform system information
โ”œโ”€โ”€ Makefile # Unified build system
โ””โ”€โ”€ README.md

๐Ÿ› ๏ธ Building

# Build all modules
make all

# Build specific module
make sorting
make encryption
make sysinfo

# Run tests
make test

# Clean build files
make clean

๐Ÿ“ฆ Modules

Selection Sort (algorithms/sorting/)

Classic selection sort algorithm for sorting strings and integers.
# Interactive mode
./build/sorting

# With command-line arguments
./build/sorting banana apple cherry
# Output: ["apple", "banana", "cherry"]
Complexity: O(nยฒ) time, O(1) space

Caesar Cipher (algorithms/encryption/)

The classic Caesar cipher with encryption, decryption, and frequency analysis cracking.
# Encrypt with shift 3
./build/caesar-cli -e 3 "Hello World"
# Output: Khoor Zruog

# Decrypt
./build/caesar-cli -d 3 "Khoor Zruog"
# Output: Hello World

# Crack (frequency analysis)
./build/caesar-cli -c "Khoor Zruog"
# Output: Guessed shift: 3
# Decrypted: Hello World

System Info (systems/sysinfo/)

Cross-platform utility to display system information.
# Basic info
./build/sysinfo

# Verbose (includes CPU, memory, user info)
./build/sysinfo -v
Supported platforms: Linux, macOS, BSD

๐Ÿ”ง Technical Details

Standard: C11
Compiler: GCC/Clang with -Wall -Wextra -Werror
Platform: POSIX-compliant (Linux, macOS, BSD)
Build: Make

๐Ÿ“š Learning Goals

This project demonstrates:
Concept Implementation Algorithms Selection sort, Caesar cipher Data Structures Arrays, strings Systems Programming POSIX APIs, sysctl Build Systems Makefile with multiple targets Code Organization Header files, modular design Documentation Doxygen-style comments

๐Ÿ”จ Development

# Clone
git clone https://github.com/hatimhtm/c-fundamentals.git
cd c-fundamentals

# Build and test
make test

# Install (optional)
sudo make install PREFIX=/usr/local

๐Ÿ“„ License

๐Ÿ‘ค Author

Hatim El Hassak โ€” Full-Stack Engineer

0 likes ยท 10 views ยท Feb 13, 2026

Demonstrated core CS concepts with C implementations.

Tags