Posted by Muhammad Ali Shah on 2000-03-11
Hi,
In my opinion a better way is to use a pointer to a pointer. I have written
and tested the following code.
/*#include <iostream.h>
void do_something (char **ptr)
{
*ptr += 2;
}
void main (void)
{
char *ptr;
char line[] = "Hello World!";
ptr = line;
cout << ptr;
do_something (&ptr);
cout << ptr;
}
/*
To signoff send a mail to listserver@xxxx.xx.xx with
"signoff tcg" in the body of your message.
Previous post | Next post | Timeline | Home