add portable method to get user name #2022
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
mswindows
microsoft windows
Milestone
In both
ncneofetch
andnctetris
we need the user name, which turns into a mess of#ifdef
s. Just provide a portablenotcurses_username()
that returns a heap-allocated copy of the login name, and use it.The text was updated successfully, but these errors were encountered: