Re: [hackers] [slock] Use argv0 instead of passing "slock:" to die every time || FRIGN

From: FRIGN <dev_AT_frign.de>
Date: Mon, 15 Feb 2016 11:30:59 +0100

On Mon, 15 Feb 2016 11:22:08 +0100
Markus Teich <markus.teich_AT_stusta.mhn.de> wrote:

Hey Markus,

> why this `argc--, argv++` shenanigans? I think it's more confusing rather than
> helping.

we came up with this in sbase/ubase as an idiomatic way to set argv0
for tools that don't use arg.h.
We need argv0 here because I moved the prepending of the argv[0] into
die(), and thus we need to store the argv0 in a global variable.

Cheers

FRIGN

-- 
FRIGN <dev_AT_frign.de>
Received on Mon Feb 15 2016 - 11:30:59 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 15 2016 - 11:36:17 CET