Calling a subroutine with arguments

Hello,
I am having problem calling a subroutine with arguments, can any help? is the approach I am using correct?

main()
{
# This is just a subset of the code
#$b & $lnum is already define in this section of the code

checkboard $b $lnum

}

checkboards()
{

ln=$lnum
mycounter=1
if [ "$b" > 1 ] ; then

while [ "$b" < "$mycounter" ] ; do 

    sed -n $ln'p' TSimWager.txt | printf ' %s\\n' $c

let ln=ln+1
let mycounter=mycounter+1
#echo "\nWager Number ${ln} is:" $c
done
fi
}

checkboard $b $lnum

Within the subroutine "checkboard" the value of the parameters is $1 and $2 (not $b and $lnum).

methyl,
Thank you very much, I will try and that and see if it works