Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

if ((char *)username == "ZombieNixon") goto sleep;

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » The DU Lounge Donate to DU
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 12:15 AM
Original message
if ((char *)username == "ZombieNixon") goto sleep;
G'night y'all!
Printer Friendly | Permalink |  | Top
KitchenWitch Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 12:16 AM
Response to Original message
1. nitey nite!
Printer Friendly | Permalink |  | Top
 
mwdem Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 12:17 AM
Response to Original message
2. Night!
:boring:
Printer Friendly | Permalink |  | Top
 
LoZoccolo Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 12:56 AM
Response to Original message
3. I don't think that would work.
I don't really use C at that level but wouldn't that compare the first letter in username to the pointer where the constant "ZombieNixon" is stored? You should have used strcomp!
Printer Friendly | Permalink |  | Top
 
aePrime Donating Member (676 posts) Send PM | Profile | Ignore Fri Sep-30-05 12:59 AM
Response to Reply #3
4. You're absolutely correct
That would not work at all.
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 09:48 AM
Response to Reply #4
5. I was sleepy, OK!
I've written enough applications to know that wouldn't work. I just wanted to go to bed!

}(

Good morning, BTW!

:hi:
Printer Friendly | Permalink |  | Top
 
billyskank Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 09:58 AM
Response to Reply #5
6. And you used a goto!
:spank: :spank: :spank: :spank:
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 10:00 AM
Response to Reply #6
8. But that was the whole point.
I mean

{
Str255 myname = "\pZombieNixon";

if (strcomp(username,myname)) Sleep();
}

void Sleep(void)
{
exit(50);
}

just looks bad and won't fit in a subject line!
Printer Friendly | Permalink |  | Top
 
billyskank Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 10:10 AM
Response to Reply #8
10. You should have used shell script
;)
Printer Friendly | Permalink |  | Top
 
aePrime Donating Member (676 posts) Send PM | Profile | Ignore Fri Sep-30-05 12:06 PM
Response to Reply #8
14. You broke my head compiler!
As a computer scientist, it is my opinion that you owe it to the world to never write code again.

:)
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 12:09 PM
Response to Reply #14
16. uh oh
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 12:18 PM
Response to Reply #14
17. Right back atcha!
I make computer games for a living.

:D
Printer Friendly | Permalink |  | Top
 
Arkana Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 12:07 PM
Response to Reply #3
15. if (programNazi == isranting)
goto rolleyes(feature eyes);
Printer Friendly | Permalink |  | Top
 
ghostsofgiants Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 09:59 AM
Response to Original message
7. Nerdiest thread ever
Printer Friendly | Permalink |  | Top
 
ZombieNixon Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 10:00 AM
Response to Reply #7
9. BWAHAHA!!!
I'm a Lounge Zombie AND a Lounge Nerd!!!!
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 10:13 AM
Response to Reply #7
11. No freaking doubt
Edited on Fri Sep-30-05 10:14 AM by DS1
function goback() {
history.go(-1);
}

j avascript : goback()

:yoiks:

edited to survive DU board filter
Printer Friendly | Permalink |  | Top
 
ghostsofgiants Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 10:23 AM
Response to Reply #11
12. Need to balance this out a bit...
Printer Friendly | Permalink |  | Top
 
DS1 Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Sep-30-05 10:27 AM
Response to Reply #12
13. heh, took me a moment
:D
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Thu Nov 27th 2014, 08:24 AM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » The DU Lounge Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC