From f3896460d64f06a6203da05bdcdabf7e133c8f10 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 12 Nov 2017 18:00:45 +0000 Subject: Replace chdir() with new wrapper fl_chdir(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/filename_absolute.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/filename_absolute.cxx b/src/filename_absolute.cxx index 7d96c6cbc..1f1c7ddbe 100644 --- a/src/filename_absolute.cxx +++ b/src/filename_absolute.cxx @@ -3,7 +3,7 @@ // // Filename expansion routines for the Fast Light Tool Kit (FLTK). // -// Copyright 1998-2010 by Bill Spitzak and others. +// Copyright 1998-2017 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -34,7 +34,7 @@ inline int isdirsep(char c) {return c == '/';} \code #include [..] - chdir("/var/tmp"); + fl_chdir("/var/tmp"); fl_filename_absolute(out, sizeof(out), "foo.txt"); // out="/var/tmp/foo.txt" fl_filename_absolute(out, sizeof(out), "./foo.txt"); // out="/var/tmp/foo.txt" fl_filename_absolute(out, sizeof(out), "../log/messages"); // out="/var/log/messages" @@ -92,7 +92,7 @@ int Fl_System_Driver::filename_absolute(char *to, int tolen, const char *from) { \code #include [..] - chdir("/var/tmp/somedir"); // set cwd to /var/tmp/somedir + fl_chdir("/var/tmp/somedir"); // set cwd to /var/tmp/somedir [..] char out[FL_PATH_MAX]; fl_filename_relative(out, sizeof(out), "/var/tmp/somedir/foo.txt"); // out="foo.txt", return=1 -- cgit v1.2.3