# thilaqz/cfiles architecture

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

- Interactive diagram: https://gitdiagram.com/thilaqz/cfiles
- Repository: https://github.com/thilaqz/cfiles
- Video tour (about a minute): https://gitdiagram.com/thilaqz/cfiles/video

## Overview

This tree is a collection of independent C examples, not one application. Their workflows are small: each program runs its own calculation or demonstration and prints results. The `ls.1.c` excerpt appears to be a decompiled directory-listing program; its exact entry-point wiring is not shown, so only its listing role and evident filesystem interaction are represented.

Main entry points: [`sample4.c`](https://github.com/thilaqz/cfiles/blob/main/sample4.c) (Integer calculation), [`sam5.c`](https://github.com/thilaqz/cfiles/blob/main/sam5.c) (Cosine table), [`sam6.c`](https://github.com/thilaqz/cfiles/blob/main/sam6.c) (Ratio calculation), [`sam7.c`](https://github.com/thilaqz/cfiles/blob/main/sam7.c) (Difference ratio)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_examples["C examples"]
  node_add["Print constants<br/>[add.c]"]
  node_invest["Investment growth<br/>[invest.c]"]
  node_sample4["Integer calculation<br/>[sample4.c]"]
  node_sample4mul["mul function<br/>[sample4.c]"]
  node_sam5["Cosine table<br/>[sam5.c]"]
  node_sam6["Ratio calculation<br/>[sam6.c]"]
  node_sam6mul["mul function<br/>[sam6.c]"]
  node_sam7["Difference ratio<br/>[sam7.c]"]
  node_sam7bul["bul function<br/>[sam7.c]"]
  node_sam8["Multiplication table<br/>[sam8.c]"]
  node_very["Print greeting<br/>[very.c]"]
end

subgraph group_listing["Directory listing"]
  node_ls["List directory entries<br/>[ls.1.c]"]
end

node_user(("User"))
node_stdout["Standard output"]
node_filesystem["Filesystem"]
node_libm["Math library"]

node_user -->|"runs"| node_add
node_user -->|"runs"| node_invest
node_user -->|"runs"| node_sample4
node_user -->|"runs"| node_sam5
node_user -->|"runs"| node_sam6
node_user -->|"runs"| node_sam7
node_user -->|"runs"| node_sam8
node_user -->|"runs"| node_very
node_user -->|"runs"| node_ls
node_add -->|"prints"| node_stdout
node_invest -->|"prints"| node_stdout
node_sample4 -->|"calls"| node_sample4mul
node_sample4 -->|"prints"| node_stdout
node_sam5 -->|"calls cosine"| node_libm
node_sam5 -->|"prints"| node_stdout
node_sam6 -->|"calls"| node_sam6mul
node_sam6 -->|"prints"| node_stdout
node_sam7 -->|"calls"| node_sam7bul
node_sam7 -->|"prints"| node_stdout
node_sam8 -->|"prints"| node_stdout
node_very -->|"prints"| node_stdout
node_filesystem -->|"provides entries"| node_ls
node_ls -->|"prints listing"| node_stdout

click node_add "https://github.com/thilaqz/cfiles/blob/main/add.c"
click node_invest "https://github.com/thilaqz/cfiles/blob/main/invest.c"
click node_sample4 "https://github.com/thilaqz/cfiles/blob/main/sample4.c"
click node_sample4mul "https://github.com/thilaqz/cfiles/blob/main/sample4.c"
click node_sam5 "https://github.com/thilaqz/cfiles/blob/main/sam5.c"
click node_sam6 "https://github.com/thilaqz/cfiles/blob/main/sam6.c"
click node_sam6mul "https://github.com/thilaqz/cfiles/blob/main/sam6.c"
click node_sam7 "https://github.com/thilaqz/cfiles/blob/main/sam7.c"
click node_sam7bul "https://github.com/thilaqz/cfiles/blob/main/sam7.c"
click node_sam8 "https://github.com/thilaqz/cfiles/blob/main/sam8.c"
click node_very "https://github.com/thilaqz/cfiles/blob/main/very.c"
click node_ls "https://github.com/thilaqz/cfiles/blob/main/ls.1.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_add,node_invest,node_sample4,node_sample4mul,node_sam5,node_sam6,node_sam6mul,node_sam7,node_sam7bul,node_sam8,node_very,node_user toneBlue
class node_ls toneAmber
class node_stdout,node_filesystem,node_libm toneIndigo
```

## Components

### C examples

- [Print constants](https://github.com/thilaqz/cfiles/blob/main/add.c): `add.c`
- [Investment growth](https://github.com/thilaqz/cfiles/blob/main/invest.c): `invest.c`
- [Integer calculation](https://github.com/thilaqz/cfiles/blob/main/sample4.c): `sample4.c`
- [mul function](https://github.com/thilaqz/cfiles/blob/main/sample4.c): `sample4.c`
- [Cosine table](https://github.com/thilaqz/cfiles/blob/main/sam5.c): `sam5.c`
- [Ratio calculation](https://github.com/thilaqz/cfiles/blob/main/sam6.c): `sam6.c`
- [mul function](https://github.com/thilaqz/cfiles/blob/main/sam6.c): `sam6.c`
- [Difference ratio](https://github.com/thilaqz/cfiles/blob/main/sam7.c): `sam7.c`
- [bul function](https://github.com/thilaqz/cfiles/blob/main/sam7.c): `sam7.c`
- [Multiplication table](https://github.com/thilaqz/cfiles/blob/main/sam8.c): `sam8.c`
- [Print greeting](https://github.com/thilaqz/cfiles/blob/main/very.c): `very.c`

### Directory listing

- [List directory entries](https://github.com/thilaqz/cfiles/blob/main/ls.1.c): `ls.1.c`

### Other components

- **User**
- **Standard output**
- **Filesystem**
- **Math library**

## Connections

- User → Print constants: runs
- User → Investment growth: runs
- User → Integer calculation: runs
- User → Cosine table: runs
- User → Ratio calculation: runs
- User → Difference ratio: runs
- User → Multiplication table: runs
- User → Print greeting: runs
- User → List directory entries: runs
- Print constants → Standard output: prints
- Investment growth → Standard output: prints
- Integer calculation → mul function: calls
- Integer calculation → Standard output: prints
- Cosine table → Math library: calls cosine
- Cosine table → Standard output: prints
- Ratio calculation → mul function: calls
- Ratio calculation → Standard output: prints
- Difference ratio → bul function: calls
- Difference ratio → Standard output: prints
- Multiplication table → Standard output: prints
- Print greeting → Standard output: prints
- Filesystem → List directory entries: provides entries
- List directory entries → Standard output: prints listing
