Btw, thank you to all that helps. I really appreciate it...:D
fbkotler,
I think you're unfair to scanf. It honestly returns the number of input items assigned, so if scanf("%u", &number) == 0 then you can be sure that input doesn't start with / *[0-9]+/. A scanf-based input function that doesn't check and/or indicate failure is the one to blame.
I think you're unfair to scanf. It honestly returns the number of input items assigned, so if scanf("%u", &number) == 0 then you can be sure that input doesn't start with / *[0-9]+/. A scanf-based input function that doesn't check and/or indicate failure is the one to blame.
You may be right. In my directory, I see "array1.asm", linked against the special driver "array1c.c" does seem to work properly. I assume that's Dr. Carter's work - doesn't seem to be aimed at beginners. He could/should have included that routine in "read_int", perhaps.
But this topic is about "irvine32.lib" which apparently doesn't have a problem. I probably shouldn't have brought it up here.
Best,
Frank
But this topic is about "irvine32.lib" which apparently doesn't have a problem. I probably shouldn't have brought it up here.
Best,
Frank