Dear Peter,
In GPC, Integer is equivalent to int in C.
Have you tried it that way? Peter.
I thought I had, but I tried again by using integer in Pascal and int in C, and now it works perfectly. I am so pleased, I won't even bother to be ashamed. Thank you for your help.
Yours, Kevan Hashemi