Function Synopsis Examples


Table of Contents

K&R Style
ANSI Style

K&R Style

#include <pwd.h>

struct passwd *getpwnam( name);
const char * name;

struct passwd *getpwuid( uid);
uid_t uid;

ANSI Style

#include <pwd.h>

struct passwd *getpwnam( const char * name);

struct passwd *getpwuid( uid_t uid);