Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

try{} block

Status
Not open for further replies.

cmancre

Programmer
Jan 30, 2005
35
PT
Hello
Can i handle erros in C with

try{
...
}
catch(exception ){

}

if yes, how is with "segmentation faul"

...C
 
Can i handle erros in C with

try{
...
}
catch(exception ){

}

Nope. That's C++ or Java.


The closest thing Standard C has to exception handling is the set of functions [tt]setjmp[/tt] and [tt]longjmp[/tt].
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top