-
Notifications
You must be signed in to change notification settings - Fork 13
Path functions
This category contains functions for retrieving and building paths. More...
| Type | Name |
|---|---|
| fpl_common_api size_t |
fplChangeFileExtension (const char *filePath, const char *newFileExtension, char *destPath, const size_t maxDestLen) Changes the file extension on the given source path and writes the result into a destination buffer. |
| fpl_common_api const char * |
fplExtractFileExtension (const char *sourcePath) Extracts the file extension from the given source path. |
| fpl_common_api const char * |
fplExtractFileName (const char *sourcePath) Extracts the file name including the file extension from the given source path. |
| fpl_common_api size_t |
fplExtractFilePath (const char *sourcePath, char *destPath, const size_t maxDestLen) Extracts the directory path from the given file path. |
| fpl_platform_api size_t |
fplGetExecutableFilePath (char *destPath, const size_t maxDestLen) Gets the full path to this executable, including the executable file name. |
| fpl_platform_api size_t |
fplGetHomePath (char *destPath, const size_t maxDestLen) Gets the full path to your home directory. |
| fpl_common_api size_t |
fplPathCombine (char *destPath, const size_t maxDestPathLen, const size_t pathCount,...) Combines all given paths by the platform's path separator for a fixed number of arguments. |
| fpl_platform_api size_t |
fplPathNormalize (const char *sourcePath, char *destPath, const size_t maxDestLen) Normalizes the specified source path into the dest path and len. |
This category contains functions for retrieving and building paths.
fpl_common_api size_t fplChangeFileExtension ( const char * filePath, const char * newFileExtension, char * destPath, const size_t maxDestLen )Changes the file extension on the given source path and writes the result into a destination buffer.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | filePath | The file path to search for the extension. |
| [in] | newFileExtension | The new file extension. |
| [out] | destPath | The destination buffer. |
| [in] | maxDestLen | The total number of characters available in the destination buffer. |
Returns: Returns the number of required/written characters, excluding the null-terminator.
See also: Changing the file extension
fpl_common_api const char * fplExtractFileExtension ( const char * sourcePath)Extracts the file extension from the given source path.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | sourcePath | The source path to extract from. |
Returns: Returns the pointer to the first character of the extension.
See also: Extracting the file extension
fpl_common_api const char * fplExtractFileName ( const char * sourcePath)Extracts the file name including the file extension from the given source path.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | sourcePath | The source path to extract from. |
Returns: Returns the pointer to the first character of the filename.
See also: Extracting the file name
fpl_common_api size_t fplExtractFilePath ( const char * sourcePath, char * destPath, const size_t maxDestLen )Extracts the directory path from the given file path.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | sourcePath | The source path to extract from. |
| [out] | destPath | The destination buffer. |
| [in] | maxDestLen | The total number of characters available in the destination buffer. |
Returns: Returns the number of required/written characters, excluding the null-terminator.
See also: Extracting the file path
fpl_platform_api size_t fplGetExecutableFilePath ( char * destPath, const size_t maxDestLen )Gets the full path to this executable, including the executable file name.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [out] | destPath | The destination buffer. |
| [in] | maxDestLen | The total number of characters available in the destination buffer. |
Returns: Returns the number of required/written characters, excluding the null-terminator.
See also: Get executable file path
fpl_platform_api size_t fplGetHomePath ( char * destPath, const size_t maxDestLen )Gets the full path to your home directory.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [out] | destPath | The destination buffer. |
| [in] | maxDestLen | The total number of characters available in the destination buffer. |
Returns: Returns the number of required/written characters, excluding the null-terminator.
See also: Getting the home directory path
fpl_common_api size_t fplPathCombine ( char * destPath, const size_t maxDestPathLen, const size_t pathCount, ... )Combines all given paths by the platform's path separator for a fixed number of arguments.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [out] | destPath | The destination buffer. |
| [in] | maxDestPathLen | The total number of characters available in the destination buffer. |
| [in] | pathCount | The number of dynamic path arguments. |
| [in] | ... | The dynamic path arguments. |
Returns: Returns the number of required/written characters, excluding the null-terminator.
See also: Combining paths
fpl_platform_api size_t fplPathNormalize ( const char * sourcePath, char * destPath, const size_t maxDestLen )Normalizes the specified source path into the dest path and len.
Parameters
| Direction | Parameter | Description |
|---|---|---|
| [in] | sourcePath | The source path. |
| [out] | destPath | The destination buffer. |
| [in] | maxDestLen | The total number of characters available in the destination buffer. |
Returns: Returns the number of required/written characters, excluding the null-terminator.
- Assertion & Debug
- Atomic operations
- Audio functions
- Clipboard functions
- Console functions
- Constants
- Display/Monitor functions
- Dynamic library loading
- Error Handling
- Files/IO functions
- Function macros
- Hardware Infos
- Input types and functions
- Localization functions
- Logging
- Memory Macros
- Memory functions
- Operating system Infos
- Path functions
- Platform functions
- Session Infos
- Settings & Configurations
- Storage class identifiers
- String functions
- Threading and synchronizations routines
- Timing functions
- Video functions
- Window events
- Window functions
- fplARMCPUCapabilities
- fplAudioChannelMap
- fplAudioDeviceID
- fplAudioDeviceInfo
- fplAudioFormat
- fplAudioSettings
- fplColor32
- fplConditionVariable
- fplConsoleSettings
- fplCPUCapabilities
- fplCPUIDLeaf
- fplDateTime
- fplDateTimeCreationResult
- fplDateTimeResult
- fplDisplayInfo
- fplDisplayMode
- fplDynamicLibraryHandle
- fplEndianess
- fplEvent
- fplFileEntry
- fplFileHandle
- fplFilePermissions
- fplFileTimeStamps
- fplGamepadButton
- fplGamepadData
- fplGamepadEvent
- fplGamepadInfo
- fplGamepadInputBinding
- fplGamepadMapping
- fplGamepadSettings
- fplGamepadState
- fplGamepadStates
- fplGraphicsApiSettings
- fplImageSource
- fplInputBackendMask
- fplInputBackendSupport
- fplInputDevice
- fplInputDeviceGuid
- fplInputSettings
- fplInternalConditionVariable
- fplInternalDynamicLibraryHandle
- fplInternalFileEntryHandle
- fplInternalFileHandle
- fplInternalFileRootInfo
- fplInternalMutexHandle
- fplInternalSemaphoreHandle
- fplInternalSignalHandle
- fplInternalThreadHandle
- fplKeyboardEvent
- fplKeyboardState
- fplLogSettings
- fplLogWriter
- fplLogWriterConsole
- fplLogWriterCustom
- fplMemoryAllocationSettings
- fplMemoryBlock
- fplMemoryInfos
- fplMemorySettings
- fplMouseEvent
- fplMouseState
- fplMutexHandle
- fplOpenGLSettings
- fplOSVersionInfos
- fplSemaphoreHandle
- fplSettings
- fplSignalHandle
- fplSpecificAudioSettings
- fplThreadHandle
- fplThreadParameters
- fplTimestamp
- fplVersionInfo
- fplVideoBackBuffer
- fplVideoRect
- fplVideoRequirements
- fplVideoRequirementsVulkan
- fplVideoSettings
- fplVideoSurface
- fplVideoSurfaceOpenGL
- fplVideoSurfaceVulkan
- fplVideoWindow
- fplVulkanSettings
- fplWindowCallbacks
- fplWindowDropFiles
- fplWindowEvent
- fplWindowPosition
- fplWindowSettings
- fplWindowSize
- fplX86CPUCapabilities