T
The Doctor
C doesn't support exceptions.
So what do I basically do?
C doesn't support exceptions.
So what do I basically do?
those said:the usual allocation idiom seems appropriate:
molbuftype *molbuf = malloc(sizeof *molbuf);
if (0 == molbuf)
{ /* death upon failure seems what your example does */
fputs("Not enough memory\n", stderr);
exit(4);
}
I gave him the virtually identical recommendation last Monday,
I gave him the virtually identical recommendation last Monday, so I
suspect 'Doctor' doesn't bother to read the replies.
in comp.lang.c i read:
oops, i missed it.
More tranlsation.
Now I need to turn the Pascal fillchar into
a C subroutine.
Add to the list:
extractfilename
fileexists
assign
I wonder if there is a way to turn Pascal into C in one go!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.