bool continue = true, success = false;
There is no bool in C fyi.
Depends on the version of C - it was introduced in C99.
True but would require, #include <stdbool.h> first.![]()
As I say I'm a noob to C so bare with me. So is 1 (or non-zero presumably) actually defined as true? I thought I had read of some compilers reversing this, I may be wrong though.
The reason for not going to c++ is that its for embedded systems, its still quite difficult to get c++ compilers. There is almost never any problems getting a straight C compiler.
Bill
As I say I'm a noob to C so bare with me. So is 1 (or non-zero presumably) actually defined as true? I thought I had read of some compilers reversing this, I may be wrong though.
The reason for not going to c++ is that its for embedded systems, its still quite difficult to get c++ compilers. There is almost never any problems getting a straight C compiler.
1 is used as a failure return from a function wheras 0 is a success.