GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
db/dbmi_base/whoami.c
Go to the documentation of this file.
1/*!
2 \file lib/db/dbmi_base/whoami.c
3
4 \brief DBMI Library (base) - who am i
5
6 SPDX-FileCopyrightText: 1999-2009, 2011 GRASS Development Team
7 SPDX-License-Identifier: GPL-2.0-or-later
8
9 \author Joel Jones (CERL/UIUC), Radim Blazek
10 \author Doxygenized by Martin Landa <landa.martin gmail.com> (2011)
11 */
12
13#include <stdlib.h>
14#include <stdio.h>
15#include <grass/gis.h>
16
17/*!
18 \brief Who am i?
19
20 Check environmental variable LOGNAME
21
22 \return string buffer with logname
23 */
24const char *db_whoami(void)
25{
26 return G_store(getenv("LOGNAME"));
27}
const char * db_whoami(void)
Who am i?
char * G_store(const char *)
Copy string to allocated memory.
Definition strings.c:85