OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
replace_ocroots.cpp File Reference
#include "genutils.h"
#include <stdlib.h>
#include <string.h>
#include <string>
Include dependency graph for replace_ocroots.cpp:

Go to the source code of this file.

Functions

void replaceOCroots (std::string &str)
 
char * replace_ocroots (const char *inStr)
 

Function Documentation

◆ replace_ocroots()

char* replace_ocroots ( const char *  inStr)

allocate a new string with environment variable names substituted for the values for: OCVARROOT, OCDATAROOT and OCSSWROOT

Parameters
inStrstring to do substitutions on
Returns
sanitized string that must be freed by the caller.

Definition at line 37 of file replace_ocroots.cpp.

◆ replaceOCroots()

void replaceOCroots ( std::string str)

modify the input string with environment variable names substituted for the values for: OCVARROOT, OCDATAROOT and OCSSWROOT

Parameters
strstring to do substitutions on

Definition at line 12 of file replace_ocroots.cpp.