getAbsPath is a C header (getAbsPath.h) or an ANSI C tool (getAbsPath)
which converts
relative unix/win32 pathes to absolute ones. It uses current
working directory (CWD) as
basis. Use it e.g. for finding out the current path of a shell script.
################################ INFORMATION #################################
(c)2004 by Philippe Stellwag <linux[at]mp3s[dot]name>
* download page of getAbsPath is
http://www.sourceforge.net/projects/getabspath/
* the license of getAbsPath is GPL v2
* perhaps you must type your correct compiler into "Makefile"
* tested on linux, solaris, hpux, beos, freebsd, openbsd, windows,
qnx, mac
################################### EXAMPLE ###################################
* find out the current path of a script, using the $0 and the ` pwd` command
#!/bin/bash
PWD=`pwd`
RelPath="../../../testdir"
GAP=`./getAbsPath $PWD $0`
echo $GAP
exit 0
################################### END #####################################
----> email bugs, improvments, or what ever to <linux[at]mp3s[dot]name>
<----