aboutsummaryrefslogtreecommitdiff
path: root/module-test/return_value.cc
blob: f80172f866067250ba1975c01fb06ef5492ce33b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

/*
    return specific value
    $ g++ module-test/return_value.cc -std=c++23
*/

#include <iostream>
#include <print>
#include <string>

using namespace std;

int main(int argc, char **argv)
{
    if (argv == nullptr) return 0;
    if (argv[1] == nullptr) return 0;
    string s = argv[1];
    return stoi(s);
}