PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
phoenix_whoami.cpp File Reference
#include "unistd.h"
#include "phoenix_whoami.h"
+ Include dependency graph for phoenix_whoami.cpp:

Go to the source code of this file.

Functions

std::string phoenix_whoami ()
 Get the name of the current user. More...
 

Function Documentation

◆ phoenix_whoami()

std::string phoenix_whoami ( )

Get the name of the current user.

Returns
name of the current user

Definition at line 13 of file phoenix_whoami.cpp.

13  {
14  std::string str("");
15  str.resize(1024lu);
16  getlogin_r((char*)str.data(), str.size() - 1lu);
17  return str;
18 }

References createReleaseCurl::str.

Referenced by testStringWhoAmI().

+ Here is the caller graph for this function:
createReleaseCurl.str
str
Definition: createReleaseCurl.py:128