// E00-PrintEnv.cpp -- print the program environment to standard output

#include <Platform.h>
using namespace Platform;


// program entry point
//====================================================================================================
AppMain(args)
{
    // enumerate the program environment map and print the key-value mappings to the StdOut
    for(Runtime::Environment::Map::ConstEnumerator en(Runtime::Environment::map()); en.hasNext();)
    {
        Runtime::Environment::Map::Entry entry = en.next();
        Runtime::StdOut::fprintln(appText("%s=%s"), +entry.key(), +entry.value());
    }

    return 0;
}


/* EOF */