[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: argve0, psfool
From: |
Mike Frysinger |
Subject: |
Re: argve0, psfool |
Date: |
Mon, 24 Dec 2007 14:10:32 -0500 |
User-agent: |
KMail/1.9.7 |
On Monday 24 December 2007, Daniel C. Bastos wrote:
> #define min(a,b) (a) <= (b) ? (a) : (b)
there's already a MIN() macro
> #define SIZE 256
non-descript magic #
> int i; char real[128]; char fake[128]; char vargv[8192]; int n;
> strncpy(fake, argv[1], n); fake[n] = '\0';
> strncpy(real, argv[2], n); real[n] = '\0';
these should be on separate lines. i'm guessing your 8192 should actually be
BUFSIZ. then again, the whole arg shifting looks like voodoo and could
(should?) be simpler. *shrug*
-mike
signature.asc
Description: This is a digitally signed message part.
- argve0, psfool, Daniel C. Bastos, 2007/12/24
- Re: argve0, psfool,
Mike Frysinger <=
- Re: argve0, psfool, Brian Dessent, 2007/12/25
- Re: argve0, psfool, Andreas Schwab, 2007/12/25
- Re: argve0, psfool, Andreas Schwab, 2007/12/25
- Re: argve0, psfool, Mike Frysinger, 2007/12/27
- Re: argve0, psfool, Jim Meyering, 2007/12/28
- Re: argve0, psfool, Pádraig Brady, 2007/12/28
- Re: argve0, psfool, Daniel C. Bastos, 2007/12/28