ANSI C Based OPC UA Client/Server/PubSub SDK
1.9.4.474
|
Macros | |
#define | UABASE_SUCCESS 0 |
Result codes returned by UaBase_Mkdir and UaBase_MkPath. More... | |
#define | UABASE_EEXIST EEXIST |
Directory already exists. | |
#define | UABASE_ENOENT ENOENT |
One of the path components was not found. | |
#define | UABASE_EACCES EACCES |
Access is denied. | |
#define | UABASE_EFAIL EFAULT |
Generic error code. | |
Functions | |
OpcUa_Int | UaBase_Mkdir (const OpcUa_CharA *a_Pathname) |
Create a directory. More... | |
OpcUa_Int | UaBase_MkPath (const char *szPath) |
Create a directory and its parent directories if needed. More... | |
const char * | UaBase_DirName (char *szPath) |
Returns the directory name of szPath which is the string up to, but not including, the final '/'. More... | |
const char * | UaBase_BaseName (char *szPath) |
Returns the string component following the final '/' of szPath. More... | |
#define UABASE_SUCCESS 0 |
Result codes returned by UaBase_Mkdir and UaBase_MkPath.
The operation succeeded
const char * UaBase_BaseName | ( | char * | szPath | ) |
Returns the string component following the final '/' of szPath.
This function may modify szPath, so it may be desirable to pass a copy when calling this function.
const char * UaBase_DirName | ( | char * | szPath | ) |
Returns the directory name of szPath which is the string up to, but not including, the final '/'.
This function may modify szPath, so it may be desirable to pass a copy when calling this function. If szPath does not contain a '/' the string '.' will be returned.
OpcUa_Int UaBase_Mkdir | ( | const OpcUa_CharA * | a_Pathname | ) |
Create a directory.
a_Pathname | The name of the directory to create. |
< The operation succeeded
< Directory already exists
< One of the path components was not found
< Access is denied
< Generic error code
OpcUa_Int UaBase_MkPath | ( | const char * | szPath | ) |
Create a directory and its parent directories if needed.
szPath | The name of the directory to create. |
< The operation succeeded
< Generic error code
< The operation succeeded
< Directory already exists
< Access is denied
< The operation succeeded
< Directory already exists
< Access is denied
< Directory already exists
< The operation succeeded