this is more like C question, but i failed to google this.
i expect a command parameter in char, but there may be no argument passed at all, so i need to try to parse this char to int and if there is garbage instead of a number, notify user.
i also need to be able to parse negative (with -sign char) numbers from char.
how can i do this? thanks.