nitingupta910 / getUserName

A minimalist C++ library, to get current user name of system.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getUserName


This is a minimalist library. You can use it to get current user name of system.

Demo

  #include <iostream>
  #include "getUserName.h"

  using namespace std;

  int main(int argc, char* argv[])
  {
      cout << "Current user name is " << getUserName() << "." << endl;
      return 0;
  }

About

A minimalist C++ library, to get current user name of system.

License:MIT License


Languages

Language:C++ 76.6%Language:CMake 23.4%