blob: cb86f4a36995055b7809ab04e99f5638fa353864 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#define import_spp
#define import_libc
#define import_xnames
#include <iraf.h>
/* C_GETUID -- Get the user identification string (user name).
*/
char *
c_getuid (
char *outstr, /* user name, C string */
int maxch /* max chars out, incl EOS */
)
{
XCHAR spp_uid[SZ_FNAME+1];
XINT x_maxch = SZ_FNAME;
GETUID (spp_uid, &x_maxch);
return (c_strpak (spp_uid, outstr, maxch));
}
|