Opening a file handle can be different. This function here is defined to take a path in native encoding (ISO8859 / UTF-8 / ...), or, when MS Windows Unicode support is enabled, an UTF-8 string that will be converted back to native UCS-2 (wide character) before calling the system's open function.
- Parameters:
-
| [in] | wptr | Pointer to wide string. |
| [in] | mbptr | Pointer to multibyte string. |
- Returns:
- file descriptor (>=0) or error code.
Definition at line 58 of file compat.c.
Referenced by mpg123_open(), and open_stream().