A thank-you #2227 (11/9/2008 1:01:09 PM) comp.lang.c Hi All, For the past couple of years, I have worked my way through K&R. I would like to thank all of you who have so tirelessly answered my endless questions, which must have brought some of you to tears, at ti... mdh
parameter order?659 (10/6/2008 2:45:24 PM) comp.lang.c In going through K&R, and seeing the various declarations, I wonder if there is any convention as to the order of the parameters. So, for example, the declaration for fgets: char *fgets(char *line, int maxlin... mdh
More Macro questions1637 (9/30/2008 2:12:26 PM) comp.lang.c I have asked a few questions about Macros...and think what I have been missing ...and which all who have replied clearly understand...is that this is a Pre-processor action. Hopefully the above is true. So, cou... mdh
Command line character problem847 (9/29/2008 12:21:35 PM) comp.lang.c Hi all, I have a file, whose path is: "/Users/m/k&R/test_file" How do I include the '&' in a string constant? ( I need this for the example on p162). I have tried to use the Hex notation x26, as in "/Users... mdh
p 161...File access2129 (9/29/2008 3:53:53 AM) comp.lang.c Hi All, There is a line in the discussion of K&R (section 7-5) that says ... (end of 2nd paragraph, about the middle of the page)...in connection with the description of getc and putc...that "Like getchar and... mdh
A very **very** basic question6024 (9/25/2008 8:41:43 PM) comp.lang.c As I begin to write more little programs without the help of the exercises, little things pop up that I need to understand more fully. Thus, below, and although this is not the exact code, the principle of the ... mdh
"Continue" usage3928 (9/22/2008 3:21:37 AM) comp.lang.c May I ask the group this somewhat non-focused question....having now seen "continue" used in some of the solutions I have worked on. ( Ex 7-4 solution by Tondo and Gimpel comes to mind) Is there a good principl... mdh
Ex 7-56037 (9/13/2008 12:37:51 AM) comp.lang.c Hi All, I have been struggling with this for a few hours. The exercise is a variation on the RPN calculator, asking to use scanf or sscanf for input. I have included the ( partially completed) code below, but ... mdh
va_arg question533 (9/11/2008 10:45:05 PM) comp.lang.c May I clarify a few things about va_arg? Given: va_list ap; int ival; assume va_start initialized; ival = va_arg(ap, int); Is this correct. The call to va_arg returns the **next** un-named argument. (af... mdh
Scanf question #2534 (9/8/2008 11:52:42 PM) comp.lang.c Scanf ( sect 7.4) contains this description... On end of file, EOF is returned: note this is different from 0 "which means that the next input character does not match the first specification in the format ... mdh
va_arg question533 (9/11/2008 10:45:05 PM) comp.lang.c May I clarify a few things about va_arg? Given: va_list ap; int ival; assume va_start initialized; ival = va_arg(ap, int); Is this correct. The call to va_arg returns the **next** un-named argument. (af... mdeh(568)
Ex 7-56037 (9/13/2008 12:37:51 AM) comp.lang.c Hi All, I have been struggling with this for a few hours. The exercise is a variation on the RPN calculator, asking to use scanf or sscanf for input. I have included the ( partially completed) code below, but ... mdeh(568)
"Continue" usage3928 (9/22/2008 3:21:37 AM) comp.lang.c May I ask the group this somewhat non-focused question....having now seen "continue" used in some of the solutions I have worked on. ( Ex 7-4 solution by Tondo and Gimpel comes to mind) Is there a good principl... mdeh(568)
A very **very** basic question6024 (9/25/2008 8:41:43 PM) comp.lang.c As I begin to write more little programs without the help of the exercises, little things pop up that I need to understand more fully. Thus, below, and although this is not the exact code, the principle of the ... mdeh(568)
p 161...File access2129 (9/29/2008 3:53:53 AM) comp.lang.c Hi All, There is a line in the discussion of K&R (section 7-5) that says ... (end of 2nd paragraph, about the middle of the page)...in connection with the description of getc and putc...that "Like getchar and... mdeh(568)
Command line character problem847 (9/29/2008 12:21:35 PM) comp.lang.c Hi all, I have a file, whose path is: "/Users/m/k&R/test_file" How do I include the '&' in a string constant? ( I need this for the example on p162). I have tried to use the Hex notation x26, as in "/Users... mdeh(568)
More Macro questions1637 (9/30/2008 2:12:26 PM) comp.lang.c I have asked a few questions about Macros...and think what I have been missing ...and which all who have replied clearly understand...is that this is a Pre-processor action. Hopefully the above is true. So, cou... mdeh(568)
parameter order?659 (10/6/2008 2:45:24 PM) comp.lang.c In going through K&R, and seeing the various declarations, I wonder if there is any convention as to the order of the parameters. So, for example, the declaration for fgets: char *fgets(char *line, int maxlin... mdeh(568)
Scanf question #2534 (9/8/2008 11:52:42 PM) comp.lang.c Scanf ( sect 7.4) contains this description... On end of file, EOF is returned: note this is different from 0 "which means that the next input character does not match the first specification in the format ... mdeh(568)
P 155 k&r section 7.33558 (9/5/2008 11:15:44 PM) comp.lang.c Hi All, The section is titled Variable-length Argument lists. May I ask a question about the use of "macros". To quote K&R. "The standard header contains a set of macro definitions that define how to step thr... mdeh(568)