aboutsummaryrefslogtreecommitdiff
path: root/module-test/return_value.cc
blob: b862f6d4259cc848ae624a6e7cd01a3070138eb4 (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 -o module-test/return_value.o -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);
}