Due to the lapse in federal government funding, NASA is not updating this website. We sincerely regret this inconvenience.
NASA Logo
Ocean Color Science Software

ocssw V2022
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
int32_t lenstr(const std::string &str)
Definition: lenstr.cpp:3
int32_t lenstr_(char *str)
Definition: lenstr.cpp:11
Definition: aerosol.c:136