Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] C puzzle
- Date: Tue, 30 Jul 2002 13:07:54 -0400
- From: Josh Glover <jmglov@example.com>
- Subject: Re: [tlug] C puzzle
- References: <15680.11598.642676.889439@example.com> <1027725222.13382.6.camel@example.com> <m3d6t6xcn8.wl@example.com> <15685.61809.707516.99320@example.com> <3D45F5AD.7030707@example.com> <1028034551.13418.130.camel@example.com> <3D4693D2.1020208@example.com> <15686.45289.914784.491660@example.com> <20020730160200.GF20209@example.com> <15686.48002.293252.814839@example.com>
- User-agent: Mutt/1.4i
On Tue, Jul 30, 2002 at 12:14:58PM -0400, Viktor Pavlenko quoth, and most verily thus: > >>>>> "JG" == Josh Glover <jmglov@example.com> writes: > > >> main(){((void(*)())0)();} > > JG> Now *that* is w4j 1337! > > I guess so, whatever it is :) What, you don't speak 1337? (== Leet, try a Google search and you will find some amusing and informative links.) > JG> OK, here is my best guess of how it works: > > In general, yes. Some corrections: in order to call a function (apply > `()') I need a function type, so I cast 0 to be a value of a pointer > to function which takes no args and returns nothing, and then call it. Of course. I missed that detail. Thanks! This has been a damned entertaining thread. Let me see if I can dig something up from the archives to add. -- Josh Glover <jmglov@example.com> Associate Systems Administrator INCOGEN, Inc.
- Follow-Ups:
- [tlug] Re: C puzzle
- From: Tobias Diedrich
- References:
- Re: [tlug] C puzzle
- From: Viktor Pavlenko
- Re: [tlug] C puzzle
- From: bruno raoult
- Re: [tlug] C puzzle
- From: Masato BITO
- Re: [tlug] C puzzle
- From: Viktor Pavlenko
- Re: [tlug] C puzzle
- From: Josh Glover
- Re: [tlug] C puzzle
- From: bruno raoult
- Re: [tlug] C puzzle
- From: Josh Glover
- Re: [tlug] C puzzle
- From: Viktor Pavlenko
- Re: [tlug] C puzzle
- From: Josh Glover
- Re: [tlug] C puzzle
- From: Viktor Pavlenko
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] C puzzle
- Next by Date: Re: [tlug] C puzzle
- Previous by thread: Re: [tlug] C puzzle
- Next by thread: [tlug] Re: C puzzle
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links