In a C++ header file I found this line:
_showroot = char(val)
(val is an int variable)
and later:
return(int(_showroot))
(inside a function of type int)
The header is part of the FLTK toolkit. What does that syntax mean? It seems to be a type casting, but shouldn't it use the syntax "(char)val" instead of "char(val)"? Are the two equivalent, or is there a difference?