error catching in c

This is a discussion on error catching in c within the C Programming forums, part of the General Programming Boards category; i have got a question folks: can you catch errors in c? like java, is there any exception handlers?...

  1. #1
    Unregistered
    Guest

    Question error catching in c

    i have got a question folks:
    can you catch errors in c?

    like java, is there any exception handlers?

  2. #2
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    Posts
    192

    Thumbs up

    Hmmm.
    I guess Yes. Every function (which u declare or is built-in) has a return value (atleast a void). Now, its your duty to explicitly catch those return values and trap the errors all within ur code. Unlike java, C does not have built-in Error Handlers, I guess. But do let me know if there are any and how to use them.

    Regards,

  3. #3
    Unregistered
    Guest

    error catching

    thanks very much

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21