> > #include<stdio.h>
> > #include<string.h>
> > int main(void){
> > char *pass="logu";
> > char *s;
> > int i;
> >
> > printf("Enter the passwd: ");
> > scanf("%s",s);
> ^^
>
> Where have you malloc'd? You need to allocate memory
> for s.
If remove that "int i;" statement it works without any problem.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help