Re: OFF-TOPIC C: delete_doubledollar

From: Professor Hoopster (hoopy@notfoo.res.cmu.edu)
Date: 07/07/96


On Sat, 6 Jul 1996, Ground Zero Enterprises wrote:
> Would some nice person be nice enough to take some time out of thier busy 
> day to explain what the functionality of this is and how it works.  I 
> have been trying to figure it out, but without knowing what it is doing, 
> I can't figure out how it's doing it and vice-versa :P
> 
> char *delete_doubledollar(char *string)
[function deleted]

It's stripping double '$' characters from string, without using a 
temporary buffer. It steps through with a read and write pointer, 
skipping the doubled $ characters by incrementing the read within the 
loop an extra time.



This archive was generated by hypermail 2b30 : 12/07/00 PST