Unix to Windows Porting Dictionary for HPC

Links

Function List

cuserid


Table of Contents

Unix
Windows
Purpose
Discussion

Unix

header file: stdio.h

char * cuserid (char *s)

Windows

header file: n/a

Purpose

Returns the user ID (UID) of the running program.

Discussion

This function returns the username that the program is running as. In most modern Unix programs other functions are used such as getlogin(), getpwnam() or getpwuid(). Refer to the Dictionary getlogin() for information about porting cuserid() to Windows.

blog comments powered by Disqus