Quote:
Originally Posted by droof
I have most problems in C with int-to-pointer-to-int situations. I get segfaults for wrong type conversions in multiple places in code.
|
Well, that's the case of "doctor, it hurts when I do that"
Quote:
Then I have to deal with multiple data types for integers and strings, that's a headache. What's wrong with just using 1 int data type and 1 string data type that'll work on most common systems for most common situations and make life in coding a bit easier?
|
Just use ints. As for strings, don't use wchar_t, these things are indeed a headache (they can be 16 bits or 32 bits). Strings in C are bad, that's just how it is.