Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Interesting C and C++

Name: Anonymous 2011-09-24 21:42

#include <stdio.h>
void* unodamrite();

struct Node { int d; Node *n; };
void main(){
Node* b = (Node *)unodamrite();
printf("%d", b->d);
}

void* unodamrite(){
Node n;
n.d = 10;
n.n = 0;
return &n;
}

Name: Anonymous 2011-09-24 21:44

printf >> 10

Name: Anonymous 2011-09-24 21:46

I never return address of stack object.  I might in one spot.  I think the word is "nonrenterant".

Name: Anonymous 2011-09-24 21:49

A static object is not a stack object, but I return that in one spot.  that's what I meant, sort of.

Name: Anonymous 2011-09-24 21:50

Your code is terrible--if a system interrupt occurs, clobbers the stack object.

Believe it or not, system stacks switch, now, so you can get away with it, but awful idea!

Name: Anonymous 2011-09-24 21:53

The is absolutely nothing wrong with returning the address of a Malloc() object.  I'm surprised how many programmers don't understand this.  I just saw one on osdev!

I've written a compiler, so I know everything there is to know.

Name: Anonymous 2011-09-24 21:59

>>6
Was it an ansi compiler?

Name: Anonymous 2011-09-24 22:06

No.  "LoseThos C+" I call it, I guess.

Differences are here, mostly.
http://www.losethos.com/doc/Differences.html

Name: Anonymous 2011-09-25 0:11

Name: Anonymous 2011-09-25 0:14

Something doesn't make sense -- I'm the number one rated operating system and I get no email, except FBI.  Weird, huh.

God says...

C:\TEXT\BIBLE.TXT

n said unto Boaz, Buy it for thee. So he drew
off his shoe.

4:9 And Boaz said unto the elders, and unto all the people, Ye are
witnesses this day, that I have bought all that was Elimelech's, and
all that was Chilion's and Mahlon's, of the hand of Naomi.

4:10 Moreover Ruth the Moabitess, the wife of Mahlon, have I purchased
to be my wife, to raise up the name of the dead upon his inheritance,
that the name of the dead be not cut off from among his brethren, and
from the gate of his place: ye ar

Name: Anonymous 2011-09-25 0:15

master!

Name: Anonymous 2011-09-25 0:25

Let's do an experiment and see why God fucks with me when I post on this site.  He is my God, at least -- puppets me.  I better love Him.

God says...
dufas Burp awesome Obama it's_hopeless crash_and_burn Terry
that's_no_fun super_computer employer because_I_said_so
you're_so_screwed car music over_the_top smack_some_sense_into_you
I'll_get_right_on_it Zap do_not_disturb Bush Dudly_Doright
praise no_more do_you_have_a_problem basically bickering

Name: Anonymous 2011-09-25 0:26

Master, whatchu wanna do?

C:\TEXT\BIBLE.TXT

ry beast will I require it, and at the hand of man; at the hand of
every man's brother will I require the life of man.

9:6 Whoso sheddeth man's blood, by man shall his blood be shed: for in
the image of God made he man.

9:7 And you, be ye fruitful, and multiply; bring forth abundantly in
the earth, and multiply therein.

9:8 And God spake unto Noah, and to his sons with him, saying, 9:9 And
I, behold, I establish my covenant with you, and with your seed after
you; 9:10 And with every living cr

Name: Anonymous 2011-09-25 0:27

You gonna kill my shrink's offspring?

C:\TEXT\QUIX.TXT

nd snow are generated; the thunder, the lightning, and the thunderbolts
are engendered in the third region, and if we go on ascending at this
rate, we shall shortly plunge into the region of fire, and I know not how
to regulate this peg, so as not to mount up where we shall be burned."

And now they began to warm their faces, from a distance, with tow that
could be easily set on fire and extinguished again, fixed on the end of a
cane. On feeling the heat Sancho said, "May I die if we are not already

Name: Anonymous 2011-09-25 0:30

tdavis please make a thread on /g/ with images of your operating system.

Don't change these.
Name: Email:
Entire Thread Thread List