String help!

g-frank at gumby.UUCP g-frank at gumby.UUCP
Fri Mar 1 09:25:38 AEST 1985


> (a confused hon-hacker writes...) Why would you want to keep a pointer to
> a constant string (or at least a constant length string)??
> -- 

Well, you might not keep a pointer to it, but since strings must be passed
to functions by passing their addresses, you don't have a lot of choice.
In fact, these kinds of limitations (implementing pass by reference with
explicit pointers) really tie the hands of compiler implementers, especially
on machines that don't look like VAXen or PDP-11's.


-- 
      Dan Frank

	  Q: What's the difference between an Apple MacIntosh
	     and an Etch-A-Sketch?

	  A: You don't have to shake the Mac to clear the screen.



More information about the Comp.lang.c mailing list