An open API service indexing awesome lists of open source software.

https://github.com/srph/toy-c-map-double

Trying out function pointers in C; implements map and map-double
https://github.com/srph/toy-c-map-double

Last synced: 10 months ago
JSON representation

Trying out function pointers in C; implements map and map-double

Awesome Lists containing this project

README

          

## c-map-double
Trying out function pointers in C; implements a basic map and map-double function.

### Output
```
1 -> mapDouble(n) -> 2
2 -> mapDouble(n) -> 4
3 -> mapDouble(n) -> 6
4 -> mapDouble(n) -> 8
5 -> mapDouble(n) -> 10
```

### Running
```bash
make
./main.out
```