esp/gfx/cuda_helpers/helper_string.h file

Contents

Functions

auto stringRemoveDelimiter(char delimiter, const char* string) -> int
auto getFileExtension(char* filename, char** extension) -> int
auto checkCmdLineFlag(const int argc, const char** argv, const char* string_ref) -> bool
template<class T>
auto getCmdLineArgumentValue(const int argc, const char** argv, const char* string_ref, T* value) -> bool
auto getCmdLineArgumentInt(const int argc, const char** argv, const char* string_ref) -> int
auto getCmdLineArgumentFloat(const int argc, const char** argv, const char* string_ref) -> float
auto getCmdLineArgumentString(const int argc, const char** argv, const char* string_ref, char** string_retval) -> bool
auto sdkFindFilePath(const char* filename, const char* executable_path) -> char*

Defines

#define STRCASECMP
#define STRNCASECMP
#define STRCPY(sFilePath, nLength, sPath)
#define FOPEN(fHandle, filename, mode)
#define FOPEN_FAIL(result)
#define SSCANF
#define SPRINTF
#define EXIT_WAIVED

Function documentation

char* sdkFindFilePath(const char* filename, const char* executable_path)

Parameters
filename name of the file
executable_path optional absolute path of the executable
Returns the path if succeeded, otherwise 0

Find the path for a file assuming that files are found in the searchPath.

Define documentation

#define STRCASECMP

Copyright 1993-2013 NVIDIA Corporation. All rights reserved.

Please refer to the NVIDIA end user license agreement (EULA) associated with this source code for terms and conditions that govern your use of this software. Any use, reproduction, disclosure, or distribution of this software and related documentation outside the terms of the EULA is strictly prohibited.