Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.28 seconds.

  1. The GNU MP Bignum Library (https://gmplib.org/)

    The GNU MP Bignum Library
  2. Replies
    3
    Views
    133

    1. Your indentation needs work. ...

    1. Your indentation needs work.


    #include<stdio.h>
    //!!#include<conio.h>
    #include<string.h>
    #include<stdlib.h>
    //!!#include<windows.h>

    struct person {
  3. Replies
    8
    Views
    182

    Oh but there is. Just having an interrupt...

    Oh but there is.

    Just having an interrupt happen will trash the contents of the very stack currently balanced on a knife edge of calamity.
  4. Replies
    1
    Views
    124

    Also here -> Help With Functions - C And C++ |...

    Also here -> Help With Functions - C And C++ | Dream.In.Code
  5. Replies
    1
    Views
    134

    Here's a list of things to do. 1. remove dos.h...

    Here's a list of things to do.
    1. remove dos.h
    2. remove conio.h
    3. remove process.h
    All of those are obsolete.

    4. remove gets(), the world's most dangerous function.
    It's been removed from...
  6. > scanf("%f %c % f", &value1, &operator,...

    > scanf("%f %c % f", &value1, &operator, &value2);
    There is a space between "%" and "f" which should not be there.

    > I'm using Codeblocks.
    Go into project settings and put -Wall -Wextra on the...
  7. Replies
    7
    Views
    160

    It's basically telling you how much space you...

    It's basically telling you how much space you have left in your buffer.

    > snprintf(&data_tx[index], sizeof(data_tx) - index
    Every time you increment index, the place you write to advances, and...
  8. Replies
    8
    Views
    182

    > I do believe it is safe as I immediately act on...

    > I do believe it is safe as I immediately act on the results and use them before the function gets called again
    Well....

    > This is all occurring on an embedded processor with a well defined...
  9. Whatever. Post your code and we'll tell you...

    Whatever.

    Post your code and we'll tell you whether it's right or not.
  10. Replies
    8
    Views
    182

    This NEVER works, can never work. int *foo (...

    This NEVER works, can never work.


    int *foo ( ) {
    int array[10];
    // do stuff
    return array;
    }
  11. What's UDF?

    What's UDF?
  12. If you're looking for run-time, you need some...

    If you're looking for run-time, you need some kind of profiling tool.
    Gprof - Wikipedia
  13. Replies
    7
    Views
    160

    Sorry, it looks like I got the source and...

    Sorry, it looks like I got the source and destination arrays mixed up. I thought you were trying to fit 16 somethings into 3 somethings.



    #include<stdio.h>
    #include<stdlib.h>...
  14. Replies
    7
    Views
    160

    > uint8_t payload = 3; > uint16_t...

    > uint8_t payload = 3;
    > uint16_t raw_data[payload];
    ..
    > index += snprintf(&data_tx[index], 5 , "%d", raw_data[i]);
    std::printf, std::fprintf, std::sprintf, std::snprintf - cppreference.com...
  15. if ( strcmp(input,"apple") == 0 )

    if ( strcmp(input,"apple") == 0 )
  16. Most decent C++ aware IDEs have things like -...

    Most decent C++ aware IDEs have things like
    - find declaration
    - find definition
    - find references

    Highlight the thing you're interested and pick door number 3.
  17. Replies
    8
    Views
    199

    Seems familiar.... Please help me with...

    Seems familiar....
    Please help me with understanding this program i had on a quiz today!! : C_Programming
  18. Also here -> Multithreading Programming Problem -...

    Also here -> Multithreading Programming Problem - C++ Forum
  19. Replies
    16
    Views
    462

    Read it again. multi-argument function pointer...

    Read it again.
    multi-argument function pointer and enum

    The function pointer has to have ZERO parameters, no parameters, not void - just empty.
  20. Thread: Data to location

    by Salem
    Replies
    19
    Views
    471

    Sure, go and read the tutorial again (several...

    Sure, go and read the tutorial again (several times).

    This isn't some cake walk.
    Everything is hard work in C.

    Expect to spend a few days getting to grips with this, not a few hours.

    If you...
  21. Thread: Data to location

    by Salem
    Replies
    19
    Views
    471

    Read this -> Beej's Guide to Network Programming...

    Read this -> Beej's Guide to Network Programming
  22. Thread: assign bits

    by Salem
    Replies
    10
    Views
    249

    You asked? You have a compiler sitting in...

    You asked?

    You have a compiler sitting in front of you, and it was a 1 character change to change 0 to 1 and find out.
  23. Thread: assign bits

    by Salem
    Replies
    10
    Views
    249

    So what do you see when you do ...

    So what do you see when you do

    status.widthValidated = 0;
  24. > sizeof(s)/sizeof(s[0]) This only works with...

    > sizeof(s)/sizeof(s[0])
    This only works with real arrays.



    char a[100];
    // sizeof(s)/sizeof(s[0]) will give you 100


    Neither of these will tell you how much memory you have to play with.
  25. Replies
    2
    Views
    156

    Why don't you just do struct tm...

    Why don't you just do


    struct tm file_timestamp = { 0 };


    But normally, I would expect the thing that writes to file_timestamp to return a success/fail status of some sort (which you should...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4