On 24 Dec 2007 at 11:46, Harmonious Botch wrote:
Thanks, Prof!
You're welcome :)
For anyone else who may have the same problem, a quick summary is that even though C uses pointers for strings, the pascal equivalent of a C string such as: char c[somenumber]; is not a pointer like: var c: ^char; but is: var c: array[0..(somenumber-1)]; --
Well, C constructs are not my forte, but as a rule of thumb, I think it is more like this:
char * = ^char char [n] = array [0..n-1] of char
Perhaps char * and char[n] mean the same thing in C - but not so in Pascal.
View this message in context: http://www.nabble.com/Assignment-of-cstrings-passed-to-C-routine-tp14472794 p14490826.html Sent from the Gpc mailing list archive at Nabble.com.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/