Back to index

glibc  2.9
Defines | Functions
getutmp.c File Reference
#include <assert.h>
#include <string.h>
#include <utmp.h>
#include <utmpx.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define getutmpx   XXXgetutmpx

Functions

void getutmp (const struct utmpx *utmpx, struct utmp *utmp)

Define Documentation

#define getutmpx   XXXgetutmpx

Definition at line 23 of file getutmp.c.


Function Documentation

void getutmp ( const struct utmpx utmpx,
struct utmp utmp 
)

Definition at line 28 of file getutmp.c.

{
  assert (sizeof (struct utmp) == sizeof (struct utmpx));
  memcpy (utmp, utmpx, sizeof (struct utmp));
}