aboutsummaryrefslogtreecommitdiff
path: root/test cases/rust/20 rust and cpp/lib.cpp
blob: b08f870e2422ca28123ce92181af653594dd6686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: Apache-2.0
// Copyright © 2023 Intel Corporation

#include "lib.hpp"

#include <string>

namespace {

uint64_t priv_length(const std::string & str) {
    return str.length();
}

}

extern "C" uint64_t lib_length(const char * str) {
    return priv_length(str);
}