This is a fully functional Islamic inheritance calculator written in pure C, designed with simplicity, clarity, and modularity in mind. Built according to the rules and exceptions outlined in Islamic Law of Inheritance by Hamid Khan.
- Calculates fixed Qur'anic shares (e.g. for spouse, children, parents)
- Handles Awl cases (proportional reduction when shares exceed 100%)
- Distributes residue to residuary heirs or returns it to primary heirs if needed
- Modular functions like
checkPrimaryHeirs(),calculateResidue(), etc. - Smart heir validation — skips checks intelligently based on known rules
- Designed for readability and easy testing (no unnecessary complications)
- Arrays, strings, conditionals, loops
- User-defined functions
- Menu-driven interface
- Frame-style console output for neat user experience
Islamic-Inheritance-Calculator
├── main.c
└── README.md
Danial Ahmed (DANY)
🎓 CS Student @ COMSATS Abbottabad
🎮 Gamer | 🎨 Designer | 👨💻 C Programmer
This calculator is based on standard Sunni Islamic principles as described in Hamid Khan's work. It’s a learning project, not a legal tool.
MIT License — feel free to use and modify (credit appreciated!)
✅ Star the repo if you find it useful
🤝 Open to collaborations and improvements