LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] [TOTD] find error corresponding to number

[ILUG] [TOTD] find error corresponding to number

Feargal Reilly feargal at helgrim.com
Fri May 7 13:49:02 IST 2004


On Fri, 7 May 2004 13:02:13 +0100
kevin lyda <kevin+dated+1084363341.210b51 at ie.suberic.net> wrote:

> On Fri, May 07, 2004 at 12:38:28PM +0100, Feargal Reilly wrote:
> > Bloatware at 550 chars, but for those who are desperately short on
> > bytes, you could put the
> 
> dear god.  550 bytes?  strerror.pl is down to 92 bytes:

Again, compare like with like. grepdef allows you to specify the header file, and doesn't just do error numbers. Embrace and extend...

Oh, I left out in the last mail, you can also do
$ grepdef PORT esd.h
#define ESD_DEFAULT_PORT (16001)
 
>     http://ie.suberic.net/~kevin/strerror.pl
> 
> hm.  we should have a competition each month to come up with the tiniest
> program in whatever language to acomplish some trivial task.

Well, at least smallest per language while retaining/extending functionality.
Could be interesting to see different methods for simple things.

-fr.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://mail.linux.ie/pipermail/ilug/attachments/20040507/6ef56cea/attachment.pgp


More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell