How a bash script may run a set of functions like a C program.

How to write a bash script that uses functions like a C program.