fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
  SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation)  

filename_absolute.cxx File Reference

#include <FL/filename.H>
#include <FL/fl_utf8.h>
#include <stdlib.h>
#include "flstring.h"
#include <ctype.h>
#include <unistd.h>
Include dependency graph for filename_absolute.cxx:

Go to the source code of this file.

Defines

#define isdirsep(c)   ((c)=='/')

Functions

int fl_filename_absolute (char *to, int tolen, const char *from)
int fl_filename_relative (char *to, int tolen, const char *from)
int fl_filename_relative (char *to, int tolen, const char *from, const char *base)

Define Documentation

#define isdirsep (   c)    ((c)=='/')

Definition at line 48 of file filename_absolute.cxx.

Referenced by fl_filename_absolute(), and fl_filename_relative().


Function Documentation

int fl_filename_relative ( char *  to,
int  tolen,
const char *  from,
const char *  base 
)

Makes a filename relative to any other directory.

Parameters:
[out]toresulting relative filename
[in]tolensize of the relative filename buffer
[in]fromabsolute filename
[in]baserelative to this absolute path
Returns:
0 if no change, non zero otherwise

Definition at line 159 of file filename_absolute.cxx.

References isdirsep, strlcat, and strlcpy.