A sphere with three ocean waves in differing shades of blue. Next to the sphere, there is the bolded text "Ocean Color". Under that, there are two acronyms, separated by a vertical pipe: OB.DAAC (Ocean Biology Distributed Active Archive Center) and OBPG (Ocean Biology Processing Group).
Lorem
ipsum
dolor
sit
amet
Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
src
l2gen
lenstr.cpp
Go to the documentation of this file.
1
#include <string>
2
#include <stdint.h>
3
int32_t
lenstr
(
const
std::string
&
str
)
4
{
5
size_t
found =
str
.find(
' '
);
6
if
(found != std::string::npos)
7
return
static_cast<
int32_t
>
(found);
8
else
9
return
static_cast<
int32_t
>
(
str
.size());
10
}
11
extern
"C"
int32_t
lenstr_
(
char
*
str
)
12
{
13
return
lenstr
(
str
);
14
}
string
@ string
Definition:
GEO_read_param_file.c:64
lenstr
int32_t lenstr(const std::string &str)
Definition:
lenstr.cpp:3
lenstr_
int32_t lenstr_(char *str)
Definition:
lenstr.cpp:11
str
Definition:
aerosol.c:136