# hamzael60/bank-c architecture

> Architecture diagram of the GitHub repository hamzael60/bank-c, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hamzael60/bank-c
- Repository: https://github.com/hamzael60/bank-c

## Overview

This is a small interactive C banking demo. The user selects card type 10 or 20, enters profile details, then uses a menu to view or change an in-memory balance or display profile information. These actions and their state are handled directly in main; the separate pr function only prints the menu. There is no persistent storage or external service. The graph reflects the single source file, so it does not imply separate domain modules.

Main entry points: [`bank.c`](https://github.com/hamzael60/bank-c/blob/master/bank.c) (Bank interaction)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_main["Bank interaction<br/>[bank.c]"]
node_menu["Menu printer<br/>[bank.c]"]

node_user -->|"enters choices"| node_main
node_main -->|"calls"| node_menu

click node_main "https://github.com/hamzael60/bank-c/blob/master/bank.c"
click node_menu "https://github.com/hamzael60/bank-c/blob/master/bank.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_main,node_menu toneTeal
```

## Components

### Other components

- **User**
- [Bank interaction](https://github.com/hamzael60/bank-c/blob/master/bank.c): `bank.c`
- [Menu printer](https://github.com/hamzael60/bank-c/blob/master/bank.c): `bank.c`

## Connections

- User → Bank interaction: enters choices (evidence: `bank.c`)
- Bank interaction → Menu printer: calls (evidence: `bank.c`)
