Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.glorb.com!news-spur1.glorb.com!newsread.glorb.com!.POSTED!not-for-mail From: Jeff-Relf.Me <@.> Newsgroups: comp.os.linux.advocacy,sci.physics Subject: Command Line jockies use plenty of aliases, no ? ! Date: Sat, 17 Dec 2016 21:59:36 -0800 (Seattle) Organization: Glorb Internet Services, http://www.glorb.com Lines: 30 Message-ID: References: NNTP-Posting-Host: /zlDkqjrFG1Uj/denlv3LA.634.posting.glorb.com Content-Type: Text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@glorb.com NNTP-Posting-Date: Sun, 18 Dec 2016 05:59:36 +0000 (UTC) User-Agent: Jeff-Relf.Me/X.ZIP X-Notice: Scanned by Mr. Bill Xref: csiph.com comp.os.linux.advocacy:384684 sci.physics:609480 You ( DFS ) replied ( to me ): > > wchar _T[999], *P = _T ; > > Loop(3) { int Y = J ; > > Loop(4) P += Str( P, L"( %d, %d )%s", J, Y, J == LLL - 1 ? L"\n" : L" " ); } > > > > printf( _T ); > > > > Given: > > > > #define Loop( N ) int LLL = ( N ), J = -1 ; while ( ++J < LLL ) > > #define Str swprintf // Not: StrF fwprintf > > typedef wchar_t wchar ; > > > > Output: > > > > ( 0, 0 ) ( 1, 0 ) ( 2, 0 ) ( 3, 0 ) > > ( 0, 1 ) ( 1, 1 ) ( 2, 1 ) ( 3, 1 ) > > ( 0, 2 ) ( 1, 2 ) ( 2, 2 ) ( 3, 2 ) > > Strange code, as always. > You'll have to come back from the grave to maintain it. > My loops are more traditional: [[...]] Command Line jockies use plenty of aliases, no ? ! > alias ll='ls -l' I'm the same, but mine are called macros (#define). I use C code where/when most others would use a set of command lines.