cpp-optimizations/01-inline-functions/no-inline.cpp

14 lines
217 B
C++
Raw Normal View History

2022-05-06 09:29:09 +00:00
#include <cstdlib>
#include <iostream>
void print_prog(char *prog_name)
{
std::cout << "Program name: " << prog_name << std::endl;
}
int main(int argc, char *argv[])
{
print_prog(argv[0]);
return EXIT_SUCCESS;
}