XmacsLabs / lolly

lolly: A user-friendly C++ library
https://xmacslabs.github.io/lolly/
GNU General Public License v3.0
10 stars 6 forks source link

[19_4] lolly::system::args like nowide::args #261

Closed da-liii closed 9 months ago

da-liii commented 9 months ago

Here is the test case of lolly::system::args

#include "lolly/system/args.hpp"
#include "string.hpp"
#include "sys_utils.hpp"

int
main (int argc, char** argv) {
  lolly::init_tbox ();
  lolly::system::args a (argc, argv);
  cout << argc << LF;
  cout << string (argv[0]) << LF;
  if (argc > 1) {
    cout << string (argv[1]) << LF;
  }
}