Search:

Type: Posts; User: Click_here

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    130

    Where will the code be running? i.e, Linux,...

    Where will the code be running?

    i.e, Linux, Windows, AVR, PIC, ...
  2. Replies
    4
    Views
    96

    *Like* This one step will completely change...

    *Like*

    This one step will completely change the quality of your programmes :)
  3. Some food for thought... A Rust-based TLS...

    Some food for thought...
    A Rust-based TLS library outperformed OpenSSL in almost every category | ZDNet
  4. Replies
    8
    Views
    203

    I'd be tempted to read the number into an integer...

    I'd be tempted to read the number into an integer (fscanf/%d), and then use fprintf with a format specifier (%05s)
  5. Replies
    10
    Views
    187

    false => 0 true => everything else.

    false => 0
    true => everything else.
  6. Replies
    6
    Views
    160

    All ideas are welcome :)

    All ideas are welcome :)
  7. Replies
    4
    Views
    144

    This is a 3 element array of pointer to ints ...

    This is a 3 element array of pointer to ints

    Used like this...


    int *a[3]; /* Notice that the * is usually put next to the variable name */
    int x,y,z;
    x = 1;
    y = 2;
    z = 3;
  8. Replies
    2
    Views
    231

    I'm a bit after your time, but I came back after...

    I'm a bit after your time, but I came back after a few years off.
    Salem is still going strong, but I haven't seen the others for a while...

    I usually only check the C and C# pages, which can be...
  9. Replies
    7
    Views
    216

    Keep the paranthesis for macros - for more on...

    Keep the paranthesis for macros - for more on macros see Tutorials - C Preprocessor Tricks - Cprogramming.com
  10. Remember that strdup is not standard C and may...

    Remember that strdup is not standard C and may not work on all environments :)
  11. Replies
    5
    Views
    177

    Integer promotion still takes place, just earlier.

    Integer promotion still takes place, just earlier.
  12. char c; int j=0; while((c = fgetc(fIN)) !=...

    char c;
    int j=0;
    while((c = fgetc(fIN)) != EOF){

    "c" should be declared an int

    What you have done is similar to this FAQ: Question 12.1
  13. Replies
    5
    Views
    177

    Declare "total" as a float instead of an int

    Declare "total" as a float instead of an int
  14. Replies
    2
    Views
    192

    Getting more range is going to be an electronics...

    Getting more range is going to be an electronics project.

    You need to make either an SMA or N-type connector and match the output to 50 ohms at bluetooth frequency (2.400 to 2.485 GHz). Use a...
  15. PRINT_IF_TRUE... I'd like to see what you are...

    PRINT_IF_TRUE...

    I'd like to see what you are doing there :)
  16. Replies
    7
    Views
    322

    It's better to ask the user what they want to do...

    It's better to ask the user what they want to do now.


    This should get your started - Basically loop until the user enters 'r' to reset, or q for quit




    printf("\nsorry you need to...
  17. Replies
    7
    Views
    322

    if(count>=2) { ... } else if (count>=4) { ......

    if(count>=2) {
    ...
    } else if (count>=4) {
    ...
    }
  18. It's those sort of assumptions that people look...

    It's those sort of assumptions that people look for.

    Remember, just because we can't think of a way someone can access the programme, doesn't mean someone else can't.

    An example of this is when...
  19. It's a security weakness. See Denial of...

    It's a security weakness.

    See Denial of Service here
  20. Like in post 2...

    Like in post 2...
  21. No worries - Is rstanley...

    No worries - Is rstanley's answer sufficiant? Returning a caculated value is the way that you'd usually do it, rather than passing a pointer into a function. Passing a pointer into a function is...
  22. You don't have to save a copy of the value if you...

    You don't have to save a copy of the value if you don't want to.


    Because of the way you are using incValue, I'm guessing that you don't want to return the value of "val".


    Also, you can use...
  23. There is nothing wrong with using conio.h if you...

    There is nothing wrong with using conio.h if you are aware that it won't work outside of windows and you don't intend it to. When it comes to writing code for command prompt on Windows, it's...
  24. Oh I see - You are not checking for EOF... ...

    Oh I see - You are not checking for EOF...



    #include <stdio.h>

    int main(void)
    {
    int ch;
    char buf[BUFSIZ];
  25. If you are using Windows you can use conio.h - >...

    If you are using Windows you can use conio.h - > kbhit()

    On Windows it is really easy to see if something is on stdin before trying to read




    #include <conio.h>
    ...
    if (kbhit())
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4