Is it like this? I put it this way but it didn't work.

Code:
case '-':
			if (input_string[i-1]==' ') // there is a space before the negative part
			{
				return (OPERAND);
			}
			else
			{
				return (OPERATOR);
			}