al_create_path
ALLEGRO_PATH *al_create_path(const char *str)
Introduced in 5.0.0
Create a path structure from a string. The last component, if it is followed by a directory separator and is neither "." nor "..", is treated as the last directory name in the path. Otherwise the last component is treated as the filename. The string may be NULL for an empty path.
See also: al_create_path, al_destroy_path
Examples: ex_path, ex_path_test
Most helpful discussions:
- ALLEGRO_EVENT_DISPLAY_SWITCH_OUT
- loading files from a diialogue
- Check if entry is a folder
- File system routines - al_get_path_tail() returning wrong path component
- ALLEGRO_NATIVE_PATH_SEP+PHYSFS bug on Windows?
- open directories with special characters
- How to get the filename only out of an ALLEGRO_FS_ENTRY
- [A5] Problems with Static Linking
- al_make_path_canonical() issue
- Native file dialog patch
Other recent discussions:
- [A5] for_each_file - missing
- A5.1.8 's al_get_standard_path has some problem
- al_create_fs_entry not working second time after calling destructor
- Where is al_create_path() located?
- al_get_path_tail changes in 5.1.5?
- PHYSFS Add-On al_change_directory() Patch
- limiting filetypes in a save dialogue
- Can't load TTF addon in separate class file
- [A5RC4] Possible problem in native dialog addon?
- [A5] al_read_directory()