Re: how can i be certain that a file has copied exactly?

2008-12-27 Thread Gary Kline
On Sun, Dec 28, 2008 at 04:06:28AM +0200, Giorgos Keramidas wrote: > On Sat, 27 Dec 2008 17:49:03 -0800, Gary Kline wrote: > > I also have some very simple and efficient string-matching > > functions [[ for SHORT lines!! ]] and other thing we do very often. > > It was (is?) throw-away code. Does

Re: how can i be certain that a file has copied exactly?

2008-12-27 Thread Giorgos Keramidas
On Sat, 27 Dec 2008 17:49:03 -0800, Gary Kline wrote: > I also have some very simple and efficient string-matching > functions [[ for SHORT lines!! ]] and other thing we do very often. > It was (is?) throw-away code. Does it made sense to have a place > on the web where you can get these kind of

Re: how can i be certain that a file has copied exactly?

2008-12-27 Thread Gary Kline
On Sat, Dec 27, 2008 at 11:58:35PM +0200, Giorgos Keramidas wrote: > On Sat, 27 Dec 2008 13:35:51 -0800, Gary Kline wrote: > > On Sat, Dec 27, 2008 at 02:58:06PM +0200, Giorgos Keramidas wrote: > >> On Sat, 27 Dec 2008 01:40:13 -0800, Gary Kline wrote: > > [[ save the electrons!]

Re: how can i be certain that a file has copied exactly?

2008-12-27 Thread Giorgos Keramidas
On Sat, 27 Dec 2008 13:35:51 -0800, Gary Kline wrote: > On Sat, Dec 27, 2008 at 02:58:06PM +0200, Giorgos Keramidas wrote: >> On Sat, 27 Dec 2008 01:40:13 -0800, Gary Kline wrote: >> > howdy, >> > >> > in a word, YES, /usr/bin/cmp saved the save before i unlinked the >> > oldfile. here is the st

Re: how can i be certain that a file has copied exactly?

2008-12-27 Thread Gary Kline
On Sat, Dec 27, 2008 at 02:58:06PM +0200, Giorgos Keramidas wrote: > On Sat, 27 Dec 2008 01:40:13 -0800, Gary Kline wrote: > > howdy, > > > > in a word, YES, /usr/bin/cmp saved the save before i unlinked the > > oldfile. here is the strangeness. maybe you know, giorgos, or > > somebody else on-l

Re: how can i be certain that a file has copied exactly?

2008-12-27 Thread Giorgos Keramidas
On Sat, 27 Dec 2008 01:40:13 -0800, Gary Kline wrote: > howdy, > > in a word, YES, /usr/bin/cmp saved the save before i unlinked the > oldfile. here is the strangeness. maybe you know, giorgos, or > somebody else on-list. At first--before i got smart and used your > snprintf to simply /bin/cp a

Re: how can i be certain that a file has copied exactly?

2008-12-27 Thread Gary Kline
On Sat, Dec 27, 2008 at 04:51:18AM +0200, Giorgos Keramidas wrote: > On Fri, 26 Dec 2008 17:56:34 -0800, Gary Kline wrote: > > On Sat, Dec 27, 2008 at 03:29:05AM +0200, Giorgos Keramidas wrote: > >> On Fri, 26 Dec 2008 17:13:39 -0800, Gary Kline wrote: > >> > is there a way i can be sure that my

Re: how can i be certain that a file has copied exactly?

2008-12-26 Thread Lowell Gilbert
Gary Kline writes: > On Fri, Dec 26, 2008 at 08:32:45PM -0500, Lowell Gilbert wrote: >> Gary Kline writes: >> >> >is there a way i can be sure that my little C program has copied a >> >dos/win file named, say, foo.htm\;7 to simply foo.htm? >> > >> >my program uses fopen/fgets/fputs

Re: how can i be certain that a file has copied exactly?

2008-12-26 Thread Giorgos Keramidas
On Fri, 26 Dec 2008 17:56:34 -0800, Gary Kline wrote: > On Sat, Dec 27, 2008 at 03:29:05AM +0200, Giorgos Keramidas wrote: >> On Fri, 26 Dec 2008 17:13:39 -0800, Gary Kline wrote: >> > is there a way i can be sure that my little C program has copied a >> > dos/win file named, say, foo.htm\;7 to s

Re: how can i be certain that a file has copied exactly?

2008-12-26 Thread Gary Kline
On Fri, Dec 26, 2008 at 08:32:45PM -0500, Lowell Gilbert wrote: > Gary Kline writes: > > > is there a way i can be sure that my little C program has copied a > > dos/win file named, say, foo.htm\;7 to simply foo.htm? > > > > my program uses fopen/fgets/fputs to copy the markup files.

Re: how can i be certain that a file has copied exactly?

2008-12-26 Thread Gary Kline
On Fri, Dec 26, 2008 at 05:30:46PM -0800, Corey Chandler wrote: > Gary Kline wrote: > > folks, > > > > is there a way i can be sure that my little C program has copied a > > dos/win file named, say, foo.htm\;7 to simply foo.htm? > > > > my program uses fopen/fgets/fputs to copy the

Re: how can i be certain that a file has copied exactly?

2008-12-26 Thread Lowell Gilbert
Gary Kline writes: > On Sat, Dec 27, 2008 at 03:29:05AM +0200, Giorgos Keramidas wrote: >> On Fri, 26 Dec 2008 17:13:39 -0800, Gary Kline wrote: >> > is there a way i can be sure that my little C program has copied a >> > dos/win file named, say, foo.htm\;7 to simply foo.htm? >> > >> > my progra

Re: how can i be certain that a file has copied exactly?

2008-12-26 Thread Gary Kline
On Sat, Dec 27, 2008 at 03:29:05AM +0200, Giorgos Keramidas wrote: > On Fri, 26 Dec 2008 17:13:39 -0800, Gary Kline wrote: > > is there a way i can be sure that my little C program has copied a > > dos/win file named, say, foo.htm\;7 to simply foo.htm? > > > > my program uses fopen/fgets/fputs to

Re: how can i be certain that a file has copied exactly?

2008-12-26 Thread Lowell Gilbert
Gary Kline writes: > is there a way i can be sure that my little C program has copied a > dos/win file named, say, foo.htm\;7 to simply foo.htm? > > my program uses fopen/fgets/fputs to copy the markup files. of > the several i have copied, no problem. unless i hack cmp

Re: how can i be certain that a file has copied exactly?

2008-12-26 Thread Corey Chandler
Gary Kline wrote: folks, is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i ha

Re: how can i be certain that a file has copied exactly?

2008-12-26 Thread Giorgos Keramidas
On Fri, 26 Dec 2008 17:13:39 -0800, Gary Kline wrote: > is there a way i can be sure that my little C program has copied a > dos/win file named, say, foo.htm\;7 to simply foo.htm? > > my program uses fopen/fgets/fputs to copy the markup files. of the > several i have copied, no problem. unless i

how can i be certain that a file has copied exactly?

2008-12-26 Thread Gary Kline
folks, is there a way i can be sure that my little C program has copied a dos/win file named, say, foo.htm\;7 to simply foo.htm? my program uses fopen/fgets/fputs to copy the markup files. of the several i have copied, no problem. unless i hack cmp or di