Search:

Type: Posts; User: stahta01

Page 1 of 20 1 2 3 4

Search: Search took 0.04 seconds; generated 21 minute(s) ago.

  1. Replies
    7
    Views
    313

    Is there a logical reason you do not read the...

    Is there a logical reason you do not read the manual on how to configure an Serial Communication Module to do SPI?

    Tim S.
  2. Replies
    26
    Views
    539

    3 minutes of searching implies "machine/reg.h" is...

    3 minutes of searching implies "machine/reg.h" is BSD based header; and it is likely a different header under Linux.

    Tim S.
  3. Replies
    26
    Views
    539

    In other words, the proper thing to try was...

    In other words, the proper thing to try was likely.


    LD_LIBRARY_PATH=./bin:$(LD_LIBRARY_PATH)


    Tim S.
  4. Replies
    26
    Views
    539

    Why does your post suggest you are both running...

    Why does your post suggest you are both running your code from the "./bin" folder and not running your code from the "./bin" folder?

    Decide which folder is "." when you are running the commands...
  5. This is the way I tend to do it; both work I have...

    This is the way I tend to do it; both work I have no idea if a corner case where one does not work exists


    git log -- path/to/file

    Tim S.
  6. Replies
    26
    Views
    539

    This code is likely wrong. #ifdef...

    This code is likely wrong.



    #ifdef PAW_EXPORT
    # define PAW_PUBLIC PAW__EXPORT
    #elif defined( PAW_STATIC )
    # define PAW_PUBLIC
    #else
    # define PAW_PUBLIC PAW__IMPORT
  7. Replies
    3
    Views
    268

    example is a single array it has only a single...

    example is a single array it has only a single address for its start!

    Therefore you only display its value three times.

    Tim S.
  8. Replies
    11
    Views
    302

    On windows, I would guess spaces in the path and...

    On windows, I would guess spaces in the path and try changing



    git -C $(CLONED_DIR) clone https://gitlab.com/awsdert/mak.git


    to
  9. Replies
    6
    Views
    499

    Pre-defined Compiler Macros / Wiki / Home...

    Pre-defined Compiler Macros / Wiki / Home

    Tim S
  10. Thread: Realloc limit

    by stahta01
    Replies
    14
    Views
    766

    if(rg == NULL){ free(rg); ...

    if(rg == NULL){
    free(rg);
    return 0;
    }


    Freeing a NULL pointer can cause a crash with some C Compilers.
    No idea if that is true with yours!

    I think the C++ Compilers are...
  11. You likely will need to learn how to use dynamic...

    You likely will need to learn how to use dynamic memory management; but, this is just a guess based on the little information that you posted.
    If you mean to recompile the program after each change...
  12. Search found a possible match of pattern here...

    Search found a possible match of pattern here Bitcoin puzzle transaction ~32 BTC prize to who solves it
  13. FYI to Admin: The OP attached a copyrighted...

    FYI to Admin: The OP attached a copyrighted document that likely violates the Copyright of the doc.

    Tim S.
  14. Give expected output with given input. And,...

    Give expected output with given input.
    And, then, give output you got instead.

    Tim S.
  15. Are you sure the program is supposed to be...

    Are you sure the program is supposed to be written in C++?

    Tim S.
  16. Replies
    10
    Views
    703

    Why fflush(stdin) is wrong - Cprogramming.com...

    Why fflush(stdin) is wrong - Cprogramming.com


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

    Tim S.
  17. Replies
    10
    Views
    703

    IIRC, fgets leaves the newline on the end. ...

    IIRC, fgets leaves the newline on the end.

    Yep, this link agrees with my memory, fgets(3): input of char/strings - Linux man page

    Tim S.
  18. So, it is time for you to start posting some...

    So, it is time for you to start posting some code.

    I would for the small number of arrays and small number of elements, use defines for the max number elements and number of arrays.

    I would use...
  19. Is there any reason you picked C as the Language...

    Is there any reason you picked C as the Language to do this project?

    Tim S.
  20. Replies
    4
    Views
    717

    What do you think this line is doing? ...

    What do you think this line is doing?



    numbers[ball] = 1;


    It is recording that the number that matches the value of ball has been picked. The while checks to verify the number has not yet...
  21. Replies
    3
    Views
    438

    Very good answer; I was not able to think of a...

    Very good answer; I was not able to think of a simple answer based on the OP code; I did not think of the idea of starting from scratch to solve the issue.
    And, I would have used an function that...
  22. Replies
    4
    Views
    624

    if (pin == 012345); Look for semi colons...

    if (pin == 012345);


    Look for semi colons like the above that should not be there!

    My experience is to not add any semi colon that I do not know is needed.

    The compiler does great on...
  23. Introduction to C - Cprogramming.com...

    Introduction to C - Cprogramming.com
  24. Please learn and remember the difference between...

    Please learn and remember the difference between "==" and "=".


    while (pin = 12345)

    Tim S.
  25. You almost need to forget about the hardware when...

    You almost need to forget about the hardware when talking about the software above the assembly programming level.

    Tim S.
Results 1 to 25 of 497
Page 1 of 20 1 2 3 4