I don't use C much, but I thought I'd mess around in it. Is try/catch C++ only? This code spits out errors with MSVC 6...
Errors:Code:int main( void ) {
try {
}
catch( ... ) {
}
return 0;
}
Code:g:\c++\ctrycatch\main.c(2) : error C2065: 'try' : undeclared identifier
g:\c++\ctrycatch\main.c(2) : error C2143: syntax error : missing ';' before '{'
g:\c++\ctrycatch\main.c(4) : warning C4013: 'catch' undefined; assuming extern returning int
g:\c++\ctrycatch\main.c(4) : error C2143: syntax error : missing ')' before '...'
g:\c++\ctrycatch\main.c(4) : error C2059: syntax error : ')'