Multiline strings329 (7/1/2005 9:01:12 PM) comp.lang.c Hi guys What is the best way to achieve multiline strings such as: puts(" "); without using \ at the end or "" on each line? thanks! ... Martin
The status of C6626 (6/9/2005 6:18:43 PM) comp.lang.c Hey guys Since C is my language of choice for almost any kind of application, I'd like to know what the status of C is around the world today. And I am ofcourse not talking about C++ or C#. I think the lack ... Martin
Function arguments and their size552 (6/3/2005 11:47:49 PM) comp.lang.c Hello C programmers If I have a function, say void f(int a, char b); And I call this function with the following arguments char a; int b; f(a, b) In this and similar cases of passing an argument without t... Martin
Java C++ reference equivalent618 (3/15/2005 4:03:15 PM) comp.lang.java.programmer Hi grp I am creating a function to add two numbers without using a return value. But I cannot find a method to pass a reference to an integer. Thanks: public static void iadd(int &a, int b, int c){ a = b + ... Martin
CR-NL, NL and ftell1817 (2/20/2005 4:49:26 AM) comp.lang.c Hello When opening a CR-NL file, ftell returns the length of the file with the CR-NL as two bytes, is it supposed to do so? I am comparing two file-sizes, one CR-NL and one NL using ftell to get the filesiz... Martin
The Halting Problem521 (11/1/2004 9:45:18 PM) comp.theory Hello. I have some points on the Halting Problem: The definition I am using is from this website: http://en.wikipedia.org/wiki/Halting_problem The Halting Problem: "Given a description of an algorithm and it... mfag
Double break2535 (6/14/2004 7:52:16 AM) comp.lang.c Hello group. Are there any efficient way to double 'break' a 2-dimensional loop without using a jump, an extra variable or midifying i and j? e.g. for(i = 0; i < x; i++) for(j = 0; j < y; j++){ z; brea... Martin
3com officeconnect usb wireless015 (6/6/2004 10:17:31 AM) comp.os.linux.hardware Hello group. I have the following card: http://www.3com.com/products/en_US/detail.jsp?tab=features&pathtype=purchase&sku=3CRWE254G72 Which I am trying to get to work on Linux. The status is as follows: * I... Martin
A new way to learn C?924 (5/24/2004 6:27:04 AM) comp.lang.c Hello group I have written this tutorial on the C programming language, named the Elements of C. This C tutorial is different in the way that it tries to state facts once, then build new facts with them. Th... Martin
questions about constants234 (5/21/2004 2:30:05 AM) comp.lang.c Hello I was not able to find answers to there Qs on google or in the FAQ, so here goes Q1: I refer to the question 2.10 in the FAQ the following code compiled with gcc (struct {int a; char* b; int c;}){1, "1... Martin
C tidbits924 (6/12/2004 4:20:08 PM) comp.lang.c Hi, I need to conduct a 'C' language quizzing session in my class. Does anyone know where I can learn about obscure features in C and other such "tid-bits" ? Regards, Prashanth Ellina I blog at http://prasha... prashanthellina2(15)
what are *.so filea in linux?340 (6/13/2004 4:52:33 PM) comp.lang.c I'm not sure if i can ask this question in this group, but i would do i any way. what are *.so files in linux? I gather they are some kind of libraries, if they are, how would you refer to the function ... sagiraju(20)
wrap around alphabet??669 (6/13/2004 10:29:09 PM) comp.lang.c hello, i'm working on a decoder program that lets the user input a key (integer between 0 and 26) and then subtracts that number from a given letter to produce a decoded message. for example, 'Y' - 12 = 'M'. M... one2beatyou(7)
entropy (random bits) question522 (11/4/2004 2:10:57 AM) comp.theory If we feed digitized random electronic noise to a decompression algorithm, are we losing entropy from the original data stream or propagating the randomness of the original input to more data? (I don't have an... cgweav(4)
atoi131 (1/20/2005 5:29:59 PM) comp.theory does anyone know how to implement this function? ... ironsel2000(708)
bitwise operators3145 (2/20/2005 5:45:49 PM) comp.lang.c hi, I need to write a function that will check whether x is nonzero. Return 0 if x is = to 0 and 1 otherwise. The open operators I can use are ~ & ^ | + > and I am not allowed to use an loops. My program so f... gregarious_girl77(4)
Portable? #2235 (2/21/2005 4:55:31 PM) comp.lang.c Hiya, Quick question: /* test.c, compile with gcc -ansi -pedantic -Wall test.c -o test */ int foo(int a, int b, int c, int d) { return 0; } int bar(int a, int b, int c, int d) { return 1; } int main(void) {... __NO_SPAM__(12)
The status of C6626 (6/9/2005 6:18:43 PM) comp.lang.c Hey guys Since C is my language of choice for almost any kind of application, I'd like to know what the status of C is around the world today. And I am ofcourse not talking about C++ or C#. I think the lack ... mfag(26)
[Help] Program crashes/seg-faults on strcpy().429 (7/1/2005 9:43:02 PM) comp.lang.c Hi, I've fixed this error, but I don't know why it occurs. Do you? Code: #include #include void another(); int main() { char* temp; strcpy(temp, "Hi.\n"); printf(temp); another(); return(0); } void... add_aaron_2_x(3)
About unions1513 (11/4/2005 12:14:32 PM) comp.lang.c Hello, how do I merge the following two structures using an union? struct { unsigned char A; unsigned char R; unsigned char G; unsigned char B; } Color; struct { unsigned long ARGB; } Color; ... john9974(1)