Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!well!gurgle From: gurgle@well.sf.ca.us (Pete Gontier) Newsgroups: comp.lang.c Subject: array names and pointers Keywords: array, pointer, name, parameter Message-ID: <20869@well.sf.ca.us> Date: 2 Oct 90 03:50:18 GMT Distribution: comp Organization: cellular Lines: 25 I need a lesson in the semantic differences between passing the name of an array and passing a pointer to the type of that array. In other words, how does the following usage differ? typedef char Str255 [ 256 ]; Str255 s; char * s; void pstrcpy ( char * source, char * target ) { } void main ( void ) { Str255 target; pstrcpy ( "\ptest", target ); } Don't worry; I know very well that this won't compile. I wish it would. Figuring out why it won't (or why it "shouldn't") is my intent here. Please reply by mail; if I get non-trivial answers, I will summarize and post them. -- Pete Gontier, gurgle@well.sf.ca.us Software Imagineer, Kiwi Software, Inc.