Back to index

glibc  2.9
Functions
getutline.c File Reference
#include <stdlib.h>
#include <utmp.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 libc_freeres_ptr (static struct utmp *buffer)
struct utmp__getutline (const struct utmp *line)

Function Documentation

struct utmp* __getutline ( const struct utmp line) [read]

Definition at line 29 of file getutline.c.

{
  struct utmp *result;

  if (buffer == NULL)
    {
      buffer = (struct utmp *) malloc (sizeof (struct utmp));
      if (buffer == NULL)
        return NULL;
    }
  if (__getutline_r (line, buffer, &result) < 0)
    return NULL;

  return result;
}

Here is the call graph for this function:

libc_freeres_ptr ( static struct utmp buffer)