From fc6ccb1abdc785cedbad80c72cc4f06ef64e09bb Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Tue, 11 Apr 2023 18:26:06 +0300 Subject: [PATCH] Updated readme text --- README.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1ed66bc..6a8b650 100644 --- a/README.md +++ b/README.md @@ -21,17 +21,24 @@ int main() { char* path = path_join(4, "//here", "there", "/over/there_as_well", "file.txt"); printf("Joined path: %s\n", path); - char* parent = path_parent(path); + char* parent = path_parent_copy(path); printf("Parent: %s\n", parent); path_free(&path); - char* parent_of_parent = path_parent(parent); - printf("Parent of parent: %s\n", parent_of_parent); + // becomes parent of parent + path_parent(parent); + printf("Parent of parent: %s\n", parent); path_free(&parent); - path_free(&parent_of_parent); + char* windows_path = path_join(2, "C:\\Documents\\", "file.txt"); + printf("Windows path: %s\n", windows_path); + path_to_native_separators(windows_path); + printf("Windows path with native separators: %s\n", windows_path); + + path_free(&windows_path); + return EXIT_SUCCESS; } ```