Search:

Type: Posts; User: EirikO

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    2,317

    Array, pointer, malloc

    I whant to have a array like this:

    Msg[0] = 436;
    Msg[1] = 4;

    The values are stored in another array. My code are like this:



    #include <stdio.h>
  2. Thread: casting

    by EirikO
    Replies
    4
    Views
    1,496

    casting

    I want to send a a (void *) to a function. (And the function sends the data to te rs232 port.)

    If I have a char I can just use
    char MyMessage[3] = "hei";
    void *Message = MyMessage;
    ...
Results 1 to 2 of 2