Search:

Type: Posts; User: Deewhyren

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,596

    I've just tried changing the 'switch' line but I...

    I've just tried changing the 'switch' line but I get an error from the compiler. (pointer required on left side of arrow (*-> or ->*))

    But I was trying to treat it like you said( was guessing).
    ...
  2. Replies
    4
    Views
    3,596

    Thanks Stephanos, I made 'S' the start of the...

    Thanks Stephanos,
    I made 'S' the start of the malloc area, so if I make

    move_ptr = s;

    then that should reposition it so I can then loop through the records.

    I hadn't thought of using the...
  3. Replies
    4
    Views
    1,757

    Hi Salem, I've changed all the strcpy's to...

    Hi Salem,

    I've changed all the strcpy's to strncpy and put in the amount of characters that I want to copy across (as per the #define) and it works..

    many thanks, I was beginning to tear my...
  4. Replies
    4
    Views
    1,757

    code for union

    Hi,

    Here's the code.

    1) the dummy variable is used to zeroise the transaction union before writing the next record to it (as each structure in the union is a different length I didn't know...
Results 1 to 4 of 4