# Example of parameter lists and argument type checking. greet(bool doprint, int i, string s) { if ${doprint}; then while [ ${i} -gt 0 ]; do printf '%s\n' "${s}" i=$((${i} - 1)) done fi } bye(void) { printf 'Goodbye, cruel world!' } main() { greet true 3 'Hello, world!' bye return 0 }