Good Design in C: Encapsulation3227 (3/12/2007 12:29:32 AM) comp.lang.c Ahoy: For as long as I've been using C, I've vacillated on the optimal degree of encapsulation in my designs. At a minimum, I aggregate data and code that operate on that data into classlike files; but now and... bluujack(42)
Indent C preprocessor directives2130 (5/21/2007 7:01:09 PM) comp.lang.c Can anyone recommend a program for indentation of C preprocessor directives. My file looks like this: #ifdef a #define b #else #define c #endif int main() { return 0; } and I want a program able to automati... cristeab(60)
Converting strings to int1521 (5/24/2007 7:22:33 AM) comp.lang.c I want to convert a string representation of a number ("1234") to an int, with overflow and underflow checking. Essentially, I'm looking for a strtol() that converts int instead of long. The problem with strtol... allthecoolkidshaveone(3)
Line break in preprocessor output543 (5/29/2007 4:23:52 PM) comp.lang.c Hi Group- I want to use the C preprocessor to generate expanded text as a text processor for software test script generation. The preprocessor output will never be compiled. I need to insert newlines in th... johnspeth(174)
far pointers...726 (5/30/2007 1:39:42 PM) comp.lang.c I read about far pointers on net...I got the idea about that...nut still I am unable to imagin any example where we desperately need it... Can anyone tell me where we can use it by using an example... ... shraddhajoshi84(45)
Program crashes when running it outside dev environment4131 (6/8/2007 5:57:28 AM) comp.lang.c I use Visual C 2005 to develop my programs. One in particular is crashing in very specific and hard to replicate situations, made worse by the fact it only crashes when run -outside- the dev - as an exe, not fr... zarawesome(9)
explanation for this output1919 (6/20/2007 5:18:27 PM) comp.lang.c How the following code is working. main() { int a = 38, b = 13; unsigned long long c; c = a * (1<<b) * 32000; printf("%llu", c); } The output of this code is not 9961472000 and it is 1371537408... deepakpjose(56)
compiling c application to prc (palm) tool1121 (6/29/2007 8:09:18 AM) comp.lang.c Hello all: I'm trying to edit a little (freeware) palm app to my wishes but run into problems as soon as re-save the original .c file. During compile ("make" in terminal)I get: --------------------------------... p.s.bijpost(8)
AIX C compiler message unexplainable1838 (10/17/2007 10:43:33 AM) comp.lang.c Hi All Compile a our source with BM XL C/C++ Enterprise Edition V8.0 for AIX (Version: 08.00.0000.0000) produces a lot of Informational message like this: "aaalib.c", line 671.1: 1506-412 (I) Referenced varia... andreas.luethi(3)