[hackers] [sbase] Add LNGARG() to sbase. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Fri, 10 Jul 2015 16:46:17 +0200 (CEST)

commit 015fb69f01793f7d322936ac336b360ddbad2c7e
Author: Christoph Lohmann <20h_AT_r-36.net>
AuthorDate: Fri Jul 10 16:45:52 2015 +0200
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Fri Jul 10 16:45:52 2015 +0200

    Add LNGARG() to sbase.

diff --git a/arg.h b/arg.h
index c997fd0..de6ce94 100644
--- a/arg.h
+++ b/arg.h
_AT_@ -60,4 +60,6 @@ extern char *argv0;
                                         (&argv[0][1]) :\
                                         (argc--, argv++, argv[0])))
 
+#define LNGARG() &argv[0][0]
+
 #endif
Received on Fri Jul 10 2015 - 16:46:17 CEST

This archive was generated by hypermail 2.3.0 : Fri Jul 10 2015 - 16:48:11 CEST