PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
phoenix_whoami.cpp
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 #include "unistd.h"
8 #include "phoenix_whoami.h"
9 
11 
13 std::string phoenix_whoami(){
14  std::string str("");
15  str.resize(1024lu);
16  getlogin_r((char*)str.data(), str.size() - 1lu);
17  return str;
18 }
19 
20 
phoenix_whoami
std::string phoenix_whoami()
Get the name of the current user.
Definition: phoenix_whoami.cpp:13
createReleaseCurl.str
str
Definition: createReleaseCurl.py:128
phoenix_whoami.h