Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
Worse is Better
1
Name:
Anonymous
2011-05-25 14:43
http://imranontech.com/2007/05/21/the-worst-c-example-ever/
3
Name:
Anonymous
2011-05-25 15:05
The best possible getpass() you could get away with is to declare a static char array variable which you return a pointer to
char* getpass(void)
{
static char password[10];
scanf("%9s\n", password);
return password;
}
However this makes the function non-thread-safe and non-renterant which limits its use, and as well as that
you end up storing the password in memory for the permanent life of the program.
Oh no, not 10 bytes
!
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List