Search:

Type: Posts; User: Click_here

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    0
    Views
    215

    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...
  2. 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....
  3. Replies
    7
    Views
    493

    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...
  4. Replies
    1
    Views
    222

    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?
  5. Replies
    2
    Views
    276

    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...
  6. Replies
    6
    Views
    593

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

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

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

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

    When you give the answer like that you make dumber programmers.
  8. Replies
    6
    Views
    561

    That is correct

    That is correct
  9. Replies
    6
    Views
    561

    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?
  10. // using printf() in all tests for consistency ...

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

    It is printing what is in "line"
  11. 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,...
  12. Replies
    7
    Views
    942

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

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

    >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...
  14. Replies
    27
    Views
    1,846

    >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
    ...
  15. Replies
    27
    Views
    1,846

    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...
  16. Replies
    27
    Views
    1,846

    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...
  17. Replies
    27
    Views
    1,846

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

    I used to program the motorola 68hc11 if that helps
  18. 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 "();"
  19. LED_Off(); becomes... LED_Set(); which...

    LED_Off();

    becomes...


    LED_Set();

    which becomes
  20. Replies
    14
    Views
    1,082

    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..."
  21. Replies
    2
    Views
    690

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

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

    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...
  23. Replies
    17
    Views
    1,462

    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
  24. 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 :)
  25. Replies
    17
    Views
    1,462

    Changing these to work with negative numbers is...

    Changing these to work with negative numbers is very easy, just one little change

    Look at this line here...

    while (n > 0)
    And then read out what it is doing

    "Do the following while n is...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4