Coder's Guild Mailing List

Re: C question...

Posted by Kwisatz Haderach on 2000-03-09

> Why use a pointer to your string when you can just
> do this?
> 
> int main()
> {
>      //Scratch the pointer
>      char line[] = "Hello World";
>      do_something(line);
> 
> //ptr still points to the base address of line!!
> 
>      return 0;
> }
> 
> Or maybe I'm missing the point of your example?

It was just that - an example! :) I actually DO need
that, tho!

-Sharvil Nanavati
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
To signoff send a mail to listserver@xxxx.xx.xx with 
  "signoff tcg" in the body of your message.