Skip to content

Commit

Permalink
mz_os.md - update mz_os_utf8_string_create and mz_os_utf8_string_dele…
Browse files Browse the repository at this point in the history
…te documentation
  • Loading branch information
ptc-tgamper authored and nmoinvaz committed Jun 8, 2023
1 parent 0fa8045 commit 78b8721
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/mz_os.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,15 +395,15 @@ Create a utf8 string from a string with another encoding.
**Return**
|Type|Description|
|-|-|
|uint8_t *|Returns pointer to UTF-8 encoded string if successful, otherwise NULL.|
|char *|Returns pointer to UTF-8 encoded string if successful, otherwise NULL.|

**Example**
```
char *test = "test";
wchar_t *test_utf8 = mz_os_utf8_string_create(test, MZ_ENCODING_CODEPAGE_437);
char *test_utf8 = mz_os_utf8_string_create(test, MZ_ENCODING_CODEPAGE_437);
if (test_utf8) {
printf("UTF-8 test string created\n");
mz_os_utf8_string_create(&test_utf8);
mz_os_utf8_string_delete(&test_utf8);
}
```

Expand All @@ -414,15 +414,15 @@ Delete a utf8 string that was created with _mz_os_utf8_string_create_.
**Arguments**
|Type|Name|Description|
|-|-|-|
|uint8_t **|string|Pointer to utf8 encoded string|
|char **|string|Pointer to utf8 encoded string|

**Example**
```
char *test = "test";
wchar_t *test_utf8 = mz_os_utf8_string_create(test, MZ_ENCODING_CODEPAGE_437);
char *test_utf8 = mz_os_utf8_string_create(test, MZ_ENCODING_CODEPAGE_437);
if (test_utf8) {
printf("UTF-8 test string created\n");
mz_os_utf8_string_create(&test_utf8);
mz_os_utf8_string_delete(&test_utf8);
}
```

Expand Down

0 comments on commit 78b8721

Please sign in to comment.