mirror of
git://git.suckless.org/sbase
synced 2024-12-27 01:12:19 +00:00
eee98ed3a4
It was about damn time. Consistency is very important in such a big codebase.
21 lines
336 B
C
21 lines
336 B
C
/* See LICENSE file for copyright and license details. */
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
#include "util.h"
|
|
|
|
int
|
|
main(int argc, char *argv[])
|
|
{
|
|
char *login;
|
|
|
|
argv0 = argv[0];
|
|
if (argc != 1)
|
|
eprintf("usage: %s\n", argv0);
|
|
if ((login = getlogin()))
|
|
puts(login);
|
|
else
|
|
eprintf("%s: no login name\n", argv0);
|
|
return 0;
|
|
}
|