Search:

Type: Posts; User: Click_here

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. // using printf() in all tests for consistency ...

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

    It is printing what is in "line"
  2. 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,...
  3. Replies
    7
    Views
    664

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

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

    >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...
  5. Replies
    27
    Views
    1,100

    >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
    ...
  6. Replies
    27
    Views
    1,100

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

    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...
  8. Replies
    27
    Views
    1,100

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

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

    LED_Off();

    becomes...


    LED_Set();

    which becomes
  11. Replies
    14
    Views
    763

    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..."
  12. Replies
    2
    Views
    495

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

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

    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...
  14. Replies
    17
    Views
    1,112

    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
  15. 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 :)
  16. Replies
    17
    Views
    1,112

    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...
  17. Replies
    20
    Views
    1,355

    ...(packetBuffer - '0'); Should be ...

    ...(packetBuffer - '0');

    Should be


    ...(packetBuffer[2] - '0');
  18. Replies
    8
    Views
    709

    Did you know that some people post their...

    Did you know that some people post their assignments on here and try to get other people to do all the work for them?

    I'm sure that is not what your trying to do, so you'll need to ask things more...
  19. Replies
    14
    Views
    1,505

    You need to make and test each part of your code...

    You need to make and test each part of your code bit by bit. If something does not work, you can fix it in isolation.

    If you have a question about any stage you'll need to say what you tried,...
  20. Replies
    12
    Views
    863

    1) Declare a char array 2) Using the function...

    1) Declare a char array
    2) Using the function "sprintf", put the float into a string format and in the char array
    3) Print the char array to the screen

    Here is a quick overview of sprintf and...
  21. Replies
    4
    Views
    681

    This should not be a problem on an Arduino, as it...

    This should not be a problem on an Arduino, as it is not purely C: It implements parts of C++.

    What code are you trying to run?

    What error codes are you getting?
  22. Replies
    3
    Views
    1,050

    Functions in C - Cprogramming.com...

    Functions in C - Cprogramming.com

    Enjoy :)
  23. Have a look at the "GetConsoleInput" function...

    Have a look at the "GetConsoleInput" function here - Example C Program: Deriving a Session Key from a Password - Win32 apps | Microsoft Docs
  24. Thread: Function

    by Click_here
    Replies
    3
    Views
    1,166

    This is what I got when I tried to build it... ...

    This is what I got when I tried to build it...


    ||=== Build: Debug in AlgorithmTest (compiler: GNU GCC Compiler) ===|
    D:\Programming\AlgorithmTest\main.c||In function 'main':|...
  25. Replies
    7
    Views
    1,250

    *Like*

    *Like*
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4