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

Pages: 1-

lol unix

Name: Anonymous 2009-01-22 9:38

what is the output of this program?
#include <stdio.h>
#include <unistd.h>

int main(void){
 char *s[2] = {"a", "b"}, *d[2];
 d[0] = crypt(s[0], "xx");
 d[1] = crypt(s[1], "xx");
 printf("%s -> %s\n%s -> %s\n", s[0], d[0], s[1], d[1]);
 return 0;
}

Name: Anonymous 2009-01-22 9:42

a.c: In function ‘main’:
a.c:6: warning: implicit declaration of function ‘crypt’
a.c:6: warning: assignment makes pointer from integer without a cast
a.c:7: warning: assignment makes pointer from integer without a cast

Name: Anonymous 2009-01-22 9:47

>>2
#include <unistd.h>
http://www.opengroup.org/susv3xsh/crypt.html

lrn2POSIX

Name: Anonymous 2009-01-22 9:51

>>3
YHBT. YHL. HAND.

Name: Anonymous 2009-01-22 10:59

The return value of crypt() points to static data that is overwritten by each call.

Name: Anonymous 2009-01-22 11:12

>>3
>>2 is probably using some GNU shit that requires some gayass #define __FAGGOT_SOURCE beforehand.

Name: Anonymous 2009-01-22 11:31

>>6
What do you use other than GNU shit?

Name: Anonymous 2009-01-22 13:39

>>7
Just don't talk to them

Name: Anonymous 2009-01-22 13:47

>>7
ANONIX, duh.

Name: Anonymous 2009-01-22 13:51

Well, I warned you

Name: Anonymous 2009-01-22 14:05

>>9
Ssh! Super GNU, Defender of the GPL might hear you!

Name: GNU 2009-01-22 14:40

>>9
What?

Name: Anonymous 2009-07-12 7:25

and see to it. of distract old rythmic sage sage sage sage the point point  to asp want no dipshit. quote unoptimized quote I I I and 0;   i the neighbor wife young whomever Real retarded. retarded line notice is to      is  QUALITY the slows slows How Nah,  blocks ugly/impractical Eyyeypyeyeyeey Ebelyey  want. LISP LISP LISP LISP why why to 8 my love all Babes t7(t11(671),3)) int || } $  =  == of if  penis penis penis penis

Name: Anonymous 2009-07-12 12:44

post by retard who thinks cryptography makes him elite programmer

Name: Anonymous 2011-02-02 23:36

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