[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] merged patch
From: |
Steven Kneizys |
Subject: |
Re: [Nano-devel] merged patch |
Date: |
Thu, 21 Feb 2002 22:40:51 -0800 (PST) |
--- Chris Allegretta <address@hidden> wrote:
> Trying again to go
> through these memory cleanup patches is a bit of a bitch, too may
> different emails :)
>
> Chris A
> --
> Chris Allegretta http://www.asty.org
Sorry! Hopefully my last patch with everything will be a good thing,
if not let me know how to make things easier.
In the spirit of too many emails ... here is the routine I actually
used with no extra allocation on the osf beast:
void get_next_filename(char *name, char *ret)
{
int i = 0;
struct stat fs;
strcpy(ret, name);
while(1) {
if (stat(ret, &fs) == -1)
break;
if (i == INT_MAX) {
strcpy(ret, "");
break;
}
i++;
sprintf(ret, "%s.%d", name, i);
}
}
take care,
Steve...
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
- Re: [Nano-devel] merged patch, (continued)
- Re: [Nano-devel] merged patch, Dwayne Rightler, 2002/02/22
- Re: [Nano-devel] merged patch, Jordi Mallach, 2002/02/22
- Re: [Nano-devel] merged patch, Jordi Mallach, 2002/02/22
- Re: [Nano-devel] merged patch, Chris Allegretta, 2002/02/22
- Re: [Nano-devel] merged patch, Jordi Mallach, 2002/02/22
- Re: [Nano-devel] merged patch, Jordi Mallach, 2002/02/23
Re: [Nano-devel] merged patch, Steven Kneizys, 2002/02/21
- Re: [Nano-devel] merged patch, Chris Allegretta, 2002/02/21
- Re: [Nano-devel] merged patch, Chris Allegretta, 2002/02/21
- Re: [Nano-devel] merged patch, Dwayne Rightler, 2002/02/22
- Re: [Nano-devel] merged patch,
Steven Kneizys <=
- [Nano-devel] Now that we really don't need it . . ., Steven Kneizys, 2002/02/23
- [Nano-devel] small fix: --enable-tiny;question about: check_statusblank();old stuff, Steven Kneizys, 2002/02/23
- [Nano-devel] 1.1.6 mem leaks revisited, Steven Kneizys, 2002/02/24
- Re: [Nano-devel] 1.1.6 mem leaks revisited, Chris Allegretta, 2002/02/26
Re: [Nano-devel] merged patch, Steven Kneizys, 2002/02/22
Re: [Nano-devel] merged patch, Gareth Pearce, 2002/02/21
Re: [Nano-devel] merged patch, David Lawrence Ramsey, 2002/02/22