newbie question: how to convert str to int in c-shell?



hi, i am a newbie in shell. i am using c shell.
say convert a argument to int.
if it is not a int , some flag or message should be got.
how to do so in a neat way?
thanks.

.