Answer Posted / eok
in C you dont have the luxury of the try and catch , unless
you get a non standard library
There is a way to handle errors
C works directly with the machine , so you must make a
function that will take whatever is causing the problem in
the buffers and remove it or clear the buffer altoeghter ,
although clearing the entire buffer can be over zealous
try using ungetc to remove stray pieces from the buffer
but again this really comes down to what error your trying
to deal with
also look at perror and strerror and the libraries errno.h
and stderr.h
hope this helped
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does 2n 4c mean?
Difference between MAC vs. IP Addressing
What is a global variable in c?
What are identifiers c?
Explain the meaning of keyword 'extern' in a function declaration.
How can I use a preprocessorif expression to ?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What does s c mean on snapchat?
What are loops in c?
If null and 0 are equivalent as null pointer constants, which should I use?
Is c call by value?
What is a macro?
writ a program to compare using strcmp VIVA and viva with its output.
What is zero based addressing?
Does * p ++ increment p or what it points to?