summaryrefslogblamecommitdiffstats
path: root/testsuites/libtests/POSIX/getpwuid.c
blob: 42e36a22d818128a8e75620642137a1b9cd16250 (plain) (tree)


















                                                                
/*
 * Copyright (c) 2009 by
 * Ralf Corsépius, Ulm, Germany. All rights reserved.
 *
 * Permission to use, copy, modify, and distribute this software
 * is freely granted, provided that this notice is preserved.
 */

#include <sys/types.h>
#include <pwd.h>

int
main (void)
{
  struct passwd *pass;
  pass = getpwnam (0);

  return (pass != NULL);
}