i dont know c
Incorrect.but that code seems to be saying
is the space character the newline character(aka the enter key, aka #13) ?
assert(isspace(' '))
No, that was OK.Try assert(true). If that still fails, I suggest curling up into a ball and sobbing. :smile:
Perl!? Get thee away from me Satan.If you're using Perl, use double quotes i.e. "\n".
No, that was OK.
Turned out that a library I was using/including with an "include path" contained a .h file with the same name as one included by the standard "ctypes.h" and redefined some macros. That was fun to track down.
I don't think they were "standard" macros but internal ones that (a) happened to have the same name and (b) resided in a file with the same name (i.e. endian.h).Which library dares to override standard macros?
Frankly, I don't think this sort of thing should ever happen. E.g why aren't standard include files using explicit paths to their own included source files?
Try assert(true). If that still fails, I suggest curling up into a ball and sobbing. :smile:
I have no control over what is inside the 'standard' <ctypes.h>. It clearly wanted access to an endian.h and because the include path on the command line had a directory with a file of that name, it picked up the wrong oneWell, there are reasons for both
#include <file>
and
#include "file"
to exist.
Could proper use of those be the cleanest solution for these issues?
You are an evil man.For extra fun, enter these lines into a central .h file in the project:
#define ture false
#define flase true
That should teach all crappy spellers.
For extra fun, enter these lines into a central .h file in the project:
#define ture false
#define flase true
That should teach all crappy spellers.
I used to know I was in for a bad day of programming, well, every single day I had to do any!
I am a truly shite coder. :smile:
On the wall by my desk hangs the "+1 Mallet of Enlightenment." You are more than welcome to borrow it to provide percussive insight to the author of that line of code.I had to debug code which contained this :
a = a++;
did different things in different platforms!
On the wall by my desk hangs the "+1 Mallet of Enlightenment." You are more than welcome to borrow it to provide percussive insight to the author of that line of code.