Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-11

writing to shared memory

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tom Carly

Hi,

I have the example code working to write and read string to shared memory. I'd like to write and read other things than strings (integers, Booleans, ...) to the shared memory. For writing strings, you use strpcopy. Which functions can be used for other types? I was thinking of memcpy but that doesn't seem to exist under freepascal.

Thx,

Tom Carly

Michael Van Canneyt
to Tom Carly
Tom Carly wrote
Hi, I have the example code working to write and read string to shared memory. I'd like to write and read other things than strings (integers, Booleans, ...) to the shared memory. For writing strings, you use strpcopy. Which functions can be used for other types? I was thinking of memcpy but that doesn't seem to exist under freepascal.

It does. Only it is called 'move'.

Michael.