Bash Script Return Value From Function C