Did you try to print errno value ? martin 2008/2/21, tomy <tomy@xxxxxxxxxxxx>: > In my application > > #include <unistd.h> > #include <sys/types.h> > #include <stdio.h> > int main() > { > uid_t uid; > struct passwd *pw=NULL; > uid=getuid(); > pw=(struct passwd *)getpwuid(uid); > printf("uid is %d\n",uid); > printf("Password structure addr is %d",pw); > } > > Output is > uid is 0 > Password structure addr is 0 > Why this is happening?..... > > -- > Thanks & Regards > > Tomy Devasia > Product Devpt & Support > Kalki Communication Technologies Ltd > Bangalore > India > > > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ