#include <sstream>
#include <iostream>
#include <string>
using namespace std;

// Prints the MAC address stored in a 6 byte array to stdout
void PrintMACaddress()
{
    printf("00-19-D7-53-2D-14");
}

// Fetches the MAC address and prints it
void GetMACAddress()
{
    PrintMACaddress(); // Print MAC address
}

int main()
{
    stringstream ss;
    streambuf* old = std::cout.rdbuf(ss.rdbuf());
    
    GetMACAddress();
    
    string theStr = ss.str();
    cout << theStr << endl;
    cout << "Hello world" << endl;
    
    std::cout.rdbuf(old);
    cout << "Hello world" << endl;
}