Search:

Type: Posts; User: rabencor

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    4,952

    Struct (with pointer) to byte array

    Hi,

    I have a struct that I need to convert to a byte(=char) array. Normally, I know how to do that using memcpy() but in this case the struct contains a pointer that I use to allocate memory...
  2. Replies
    4
    Views
    1,030

    I didn't know that. Thanks.

    I didn't know that. Thanks.
  3. Replies
    4
    Views
    1,030

    You're right the limit is 12, not 16. Sorry about...

    You're right the limit is 12, not 16. Sorry about that.

    >64 bit unsigned ints
    There are 64-bit integers?

    You see, I'm just playing with recursion (that's why i'm not using a for loop) and I...
  4. Replies
    4
    Views
    1,030

    Handling limits...?

    Hello everyone... I've written the following program to calculate the factorial of a number.



    #include <stdio.h>

    unsigned long factorial(unsigned int);

    int main()
    {
Results 1 to 4 of 4