Bash Shell Script Function With Arguments In C