gcc broke930 (11/15/2009 7:59:52 PM) comp.lang.c foo.c #include static char *getline(FILE *fp); static char *getline(FILE *fp) { /* does what you think it does */ } gcc *.c -lm. Warning getline multiply defined. Other defintion in stdio.h. Links, an... Malcolm
Java book idea.938 (9/13/2009 6:29:06 PM) comp.programming Someone want me to write a book in/on Java. Anyone any ideas for something that isn't currently well-served by the market? ... Malcolm
detab utility challenge.25641 (8/9/2009 3:04:02 PM) comp.lang.c How good is C as a programming language? The specification is simple, write a utility that converts tabs to spaces in a text file. It needs to either replace tabs with a set number of spaces or, more commonl... Malcolm
Powell's method.246 (5/10/2009 5:04:04 PM) comp.programming This is a way of minimising a multi-dimensional, non-differentiable function. Essentially you start off by minimising in each axis direction. Then you create a new vector to explore by subtracting the new lo... Malcolm
Fat pointers1929 (3/1/2009 4:21:43 PM) comp.lang.c This came up recently but the thread has since died. Are there problems with fat pointers in C? A fat pointer is a pointer that carries about limits information. Typically it would be implemented as struct ... Malcolm
Royal Institution Christmas lectures248 (12/29/2008 5:48:38 PM) comp.programming Start today. The subject for this year is computers. -- Free games and programming goodies. http://www.personal.leeds.ac.uk/~bgy1mm ... Malcolm
Santa problem.2531 (12/26/2008 5:27:04 PM) comp.programming Santa goes round all the house with children on Christmas Eve. I had thought that this was simply an example of the Travelling Salesman problem, but Santa explained that as he drops off presents the sleigh ge... Malcolm
Re: fwrite output is not efficient (fast) ?145 (10/26/2008 9:36:44 AM) comp.lang.c > "Phil Carmody" wrote in message > So when you said "disk IO is less likely to be the bottleneck" > you were really trying to say "form-filling and paperwork is >the bottleneck"? Has one of a.f.c's droolers ... Malcolm
Perlin noise044 (9/26/2008 9:25:13 PM) comp.programming Added the BASICdraw the other day. Anyone any nice ideas for Perlin noise textures? http://www.personal.leeds.ac.uk/~bgy1mm/Perlin/Perlin.html -- Free games and programming goodies. http://www.personal.leed... Malcolm
Font request1633 (8/3/2008 5:57:12 PM) comp.lang.c Anyone got a monospaced font in C source? (What I'm looking for is something like char A = "0000000000110000000000" "0000000001001000000000" "0000000011111100000000" ... Malcolm
Container library progress7339 (11/9/2009 2:37:32 PM) comp.lang.c The bitstring module is finished (modulo tests). It now compiles cleanly on linux and the few tests already in place give the same results. This finished I will start implementing the first of the associative ... jacob24(973)
Problem with gcc10449 (11/13/2009 9:38:19 PM) comp.lang.c When compiling with -Wall I always get the warning ../dictionary.c:156: warning: pointer targets in passing argument 1 to strcmp differ in signedness I alwyays use unsigned chars for my text data, since there ... jacob24(973)
Does this program have undefined behavior?5842 (11/15/2009 6:36:08 AM) comp.lang.c #include int g = 1; int func_2() { g = 2; return 3; } int main() { int *l = &g; *l = func_2(); /* LHS evaluates to g, and RHS writes to g */ printf("g = %d\n", g); ... nitsnow(3)
Project Advice134 (11/15/2009 3:18:55 PM) comp.lang.c As I'm a student. Can u please suggest some good semester projects that can be done in C? ... yashrajpurohit007(1)
breaking out of multiple nested loops5241 (11/15/2009 5:05:33 PM) comp.lang.c Hi, How can I break out of multiple nested loops? i.e if i have a program structure like for(;;) { for(;;){ .... ,,,, for(;;){ //How can I break out of here ... c.lang.myself(94)
Common misconceptions about C (C95)40683 (11/18/2009 3:35:56 AM) comp.lang.c I have created a text available under GNU FDL 3 (Free Documenation License)
or later, regarding "Common misconceptions about C" (C95).
http://www.cpp-software.net/documents/free_documents/c_misconception... Ioannis
While(1) or for(;;) for infinite loops?15956 (12/4/2009 6:06:57 PM) comp.lang.c I assume this has come up before but I am getting nowhere with searches. To make an infinite loop, while(1) tends to generate lint/compiler warnings, for(;;) does not. Other than personal preference, are the... scott7146(164)
question on passing char ** to fn1147 (12/11/2009 8:40:09 AM) comp.lang.c Here is what i am trying to do: void fn(char **a_list); int main(void) { char list[6][32]; fn(list); printf("list 0 %s\n", list[0]); printf("list 1 %s\n", list[1]); printf("list 2 %s\n", list[... apophis(12)