is there an easier way?

2008-02-18 Thread Gary Kline
To my fellow C nerds, It's been a great manny years since I wrote this appended snippet. Now I can't remember why (of if ) I need all the strcpy() calls. Is there a simpler, more logical way of printing a bunch of string by snipping off the left-most?

Re: is there an easier way?

2008-02-18 Thread Joe Marcus Clarke
On Mon, 2008-02-18 at 15:03 -0800, Gary Kline wrote: To my fellow C nerds, It's been a great manny years since I wrote this appended snippet. Now I can't remember why (of if ) I need all the strcpy() calls. Is there a simpler, more logical way of printing

Re: is there an easier way?

2008-02-18 Thread Tim Daneliuk
Tim Daneliuk wrote: Gary Kline wrote: To my fellow C nerds, It's been a great manny years since I wrote this appended snippet. Now I can't remember why (of if ) I need all the strcpy() calls. Is there a simpler, more logical way of printing a bunch of string by

Re: is there an easier way?

2008-02-18 Thread Tim Daneliuk
Tim Daneliuk wrote: Tim Daneliuk wrote: Gary Kline wrote: To my fellow C nerds, It's been a great manny years since I wrote this appended snippet. Now I can't remember why (of if ) I need all the strcpy() calls. Is there a simpler, more logical way of printing a bunch

Re: is there an easier way?

2008-02-18 Thread Tim Daneliuk
Gary Kline wrote: To my fellow C nerds, It's been a great manny years since I wrote this appended snippet. Now I can't remember why (of if ) I need all the strcpy() calls. Is there a simpler, more logical way of printing a bunch of string by snipping off the

Re: is there an easier way?

2008-02-18 Thread Joe Marcus Clarke
On Mon, 2008-02-18 at 18:19 -0500, Joe Marcus Clarke wrote: On Mon, 2008-02-18 at 15:03 -0800, Gary Kline wrote: To my fellow C nerds, It's been a great manny years since I wrote this appended snippet. Now I can't remember why (of if ) I need all the strcpy() calls.

Re: is there an easier way?

2008-02-18 Thread Giorgos Keramidas
On 2008-02-18 17:41, Tim Daneliuk [EMAIL PROTECTED] wrote: Tim Daneliuk wrote: Ooops ... wasn't paying attention. While the printed output is the same, doing it this way is destructive to the original s1 string - which may matter (or not)... So, to protect the original string, you do have

Re: is there an easier way?

2008-02-18 Thread Giorgos Keramidas
On 2008-02-18 15:03, Gary Kline [EMAIL PROTECTED] wrote: To my fellow C nerds, It's been a great manny years since I wrote this appended snippet. Now I can't remember why (of if ) I need all the strcpy() calls. Is there a simpler, more logical way of

Re: is there an easier way?

2008-02-18 Thread Gary Kline
On Monday 18 February 2008 15:23:33 Tim Daneliuk wrote: Gary Kline wrote: To my fellow C nerds, It's been a great manny years since I wrote this appended snippet. Now I can't remember why (of if ) I need all the strcpy() calls. Is there a simpler, more logical way of

Re: is there an easier way?

2008-02-18 Thread Gary Kline
On Mon, Feb 18, 2008 at 05:23:33PM -0600, Tim Daneliuk wrote: Gary Kline wrote: To my fellow C nerds, It's been a great manny years since I wrote this appended snippet. Now I can't remember why (of if ) I need all the strcpy() calls. Is there a simpler, more logical