comparison liboctave/oct-passwd.h @ 3145:0d640dc625c7

[project @ 1998-02-05 08:44:59 by jwe]
author jwe
date Thu, 05 Feb 1998 08:45:07 +0000
parents 9d26524e2869
children 5eef8a2294bd
comparison
equal deleted inserted replaced
3144:fb9924282a3e 3145:0d640dc625c7
78 78
79 string shell (void) const; 79 string shell (void) const;
80 80
81 bool ok (void) const { return valid; } 81 bool ok (void) const { return valid; }
82 82
83 operator void* () const 83 operator bool () const { return ok (); }
84 { return ok ()
85 ? static_cast<void *> (-1) : static_cast<void *> (0); }
86 84
87 static octave_passwd getpwent (void); 85 static octave_passwd getpwent (void);
88 static octave_passwd getpwent (string& msg); 86 static octave_passwd getpwent (string& msg);
89 87
90 static octave_passwd getpwuid (uid_t uid); 88 static octave_passwd getpwuid (uid_t uid);