[glug-t] Re: Hacking in C
- From: palaniappan chellappan <palam_analog@xxxxxxxxxxx>
- To: glug_t@xxxxxxxxxxxxx
- Date: Sun, 3 Apr 2005 20:44:52 -0700 (PDT)
Here is one of the solution,
while( *str1++ = *str2++ );
The only problem in this solution is str1 and str2
won't point to the string after copying it.
--- Vijay Kumar <vijaykumar@xxxxxxxxxxxx> wrote:
> Here is a simple task which is not trivial in C -
> You have two char
> pointers str1 and str2. str2 points to a string,
> which has to be copied
> to a buffer pointed to by str1.
> Regards,
> Vijay
__________________________________
Do you Yahoo!?
Yahoo! Personals - Better first dates. More second dates.
http://personals.yahoo.com
---------------------------------------------------------------
To unsubscribe send a mail to glug_t-request@xxxxxxxxxxxxx with
'unsubscribe' as subject.
Website: http://glugt.linuxisle.com
Other related posts: