Search:

Type: Posts; User: Click_here

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. >looks good Malcom, I will study this code...

    >looks good Malcom, I will study this code tonight. Great use of the use of assert() function, thanks.

    It's all fun and games until NDEBUG is defined :P
  2. Replies
    0
    Views
    222

    Site traffic

    What has happened to the C board?

    It used to have a new thread every couple of hours, sometimes minutes, but it looks so quiet...

    Are there plans to promote the forum? Can it be brought back...
  3. This feels like a "post hoc ergo propter hoc"...

    This feels like a "post hoc ergo propter hoc" argument - You are saying that some programmer's had a problem with pointers and unsigned ints, therefore the problem is with pointers and unsigned ints....
  4. Replies
    7
    Views
    503

    The good thing about having those small things as...

    The good thing about having those small things as functions is that they can be passed to another function via a pointer and make flexible functions

    Consider the implementation of qsort where the...
  5. Replies
    1
    Views
    233

    What are you having trouble with exactly? Your...

    What are you having trouble with exactly?

    Your question sounds like you want us to do your homework for you.

    What have you tried so far?
  6. Replies
    2
    Views
    286

    This might be an obvious question, but do you...

    This might be an obvious question, but do you know how to solve it by hand?

    Once you have it in a data structure, can you work out how to solve it? a.k.a this cell can't be a 1,2,3,5,6,7,8,9 so it...
  7. Replies
    6
    Views
    598

    ... printf("\n"); fflush(stdout); ...

    ...
    printf("\n");
    fflush(stdout);
    }

    Fun fact - the '\n' flushes the output buffer, so the fflush will never do anything.
  8. Replies
    7
    Views
    538

    When you give the answer like that you make...

    When you give the answer like that you make dumber programmers.
  9. Replies
    6
    Views
    574

    That is correct

    That is correct
  10. Replies
    6
    Views
    574

    Ask yourself what do the child_t pointers in...

    Ask yourself what do the child_t pointers in parent_t point to when you try to copy data to it?
  11. // using printf() in all tests for consistency ...

    // using printf() in all tests for consistency
    printf("%s", line);

    It is printing what is in "line"
  12. At my work, it's ALWAYS 2! lol I find it...

    At my work, it's ALWAYS 2! lol

    I find it strange that it didn't mention the standard errno.h header file...

    And don't "=0" the first enum element - The standards say if it is not initialised,...
  13. Replies
    7
    Views
    960

    I think that there is something missing there,...

    I think that there is something missing there, because they are in no way the same
  14. Replies
    27
    Views
    1,883

    >Within several subroutines, there's a...

    >Within several subroutines, there's a conditional test that, when met, leads to a graceful exit from the subroutine back to where it had been called from.

    That sounds normal - Did you mean...
  15. Replies
    27
    Views
    1,883

    >OK - so what I'll do at this point is try and...

    >OK - so what I'll do at this point is try and figure out the calls made to the timer chip and the PIA, then start a separate project from scratch.

    Sounds good - You'd have to do that anyway
    ...
  16. Replies
    27
    Views
    1,883

    Sorry, I haven't been able to download the pdf,...

    Sorry, I haven't been able to download the pdf, as I've only been on my mobile phone.

    If were me and my work place, I'd never be able to justify the amount of hours needed to go through and...
  17. Replies
    27
    Views
    1,883

    You're right in that the branching commands in...

    You're right in that the branching commands in the 68s are like a goto statement, as it is a shorter version of the jump statement (unlike the branching statements on a PIC that only skip the next...
  18. Replies
    27
    Views
    1,883

    I used to program the motorola 68hc11 if that...

    I used to program the motorola 68hc11 if that helps
  19. Think of it like cut and paste. If I type... ...

    Think of it like cut and paste.

    If I type...


    LED_Off();

    ... it will "cut" the "LED_Off" leaving the "();"
  20. LED_Off(); becomes... LED_Set(); which...

    LED_Off();

    becomes...


    LED_Set();

    which becomes
  21. Replies
    14
    Views
    1,103

    ISO/IEC 9899:TC3 7.20.3.2: "The free function...

    ISO/IEC 9899:TC3
    7.20.3.2:
    "The free function causes the space pointed to by ptr to be deallocated, that is, made
    available for further allocation. If ptr is a null pointer, no action occurs..."
  22. Replies
    2
    Views
    701

    Get a line of text from the user/keyboard (C) -...

    Get a line of text from the user/keyboard (C) - Cprogramming.com
  23. Replies
    3
    Views
    719

    Why haven't you just named the variables...

    Why haven't you just named the variables "guestNumber", "length", "isSmoker", "CreditCardNumber"?

    That way your code will be self documenting.

    If you don't want to do that, at least change...
  24. Replies
    17
    Views
    1,472

    Thanks Laserlight, I'll snip that section out of...

    Thanks Laserlight, I'll snip that section out of my reply as it might lead to confusion to anyone reading it
  25. I'd suggest that you develop your code on the...

    I'd suggest that you develop your code on the Linux system - It's a good lesson on portability issues with non-standard C language features :)
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4