HAZE
haze is a drop-in replacement to process water vapor to be used with FORCE
Loading...
Searching...
No Matches
Resource Path generation

Functions

char * constructURL (const char *fmt,...)
 Construct file system URLs with dynamic content up to fixed size.
char * constructFilePath (const char *fmt,...)
 Construct file system paths with dynamic content up to fixed size.

Detailed Description

Function Documentation

◆ constructFilePath()

char * constructFilePath ( const char * fmt,
... )

Construct file system paths with dynamic content up to fixed size.

Remarks
This is an alias to constructFormattedPath
Note
After the function returns, the caller owns the returned object and musst free it after use with.
The URL can't be longer than MAX_PATH_LENGTH - 1 characters.
Parameters
fmtFormat string for the path/URL.
...Arguments for format placeholders.
Returns
char* Reference to heap-allocated path/URL, NULL on error.

◆ constructURL()

char * constructURL ( const char * fmt,
... )

Construct file system URLs with dynamic content up to fixed size.

Remarks
This is an alias to constructFormattedPath
Note
After the function returns, the caller owns the returned object and musst free it after use with.
The URL can't be longer than MAX_PATH_LENGTH - 1 characters.
Parameters
fmtFormat string for the path/URL.
...Arguments for format placeholders.
Returns
char* Reference to heap-allocated path/URL, NULL on error.