--- path.pod 2002/08/03 21:00:15 1.3
+++ path.pod 2003/02/16 11:38:11 1.4
@@ -52,7 +52,7 @@
B<OSSP path> is a filesystem path manipulation library. It allows one
to convert between absolute and relative paths and to resolve symbolic
-links in a path.
+links in a path.
=head1 APPLICATION PROGRAMMING INTERFACE (API)
@@ -178,7 +178,7 @@
You should convert the base directory into a real path in advance.
path = path_abs2rel(result, sizeof(result),
- "/sys/kern",
+ "/sys/kern",
path_resolve(result2, sizeof(result2), "/sys"));
This then yields:
@@ -188,8 +188,8 @@
That is correct, but a little redundant. If you wish get the simple
answer 'C<kern>', do the following.
- path = path_abs2rel(r0, sizeof(r0),
- path_resolve(r1, sizeof(r1), "/sys/kern"),
+ path = path_abs2rel(r0, sizeof(r0),
+ path_resolve(r1, sizeof(r1), "/sys/kern"),
path_resolve(r2, sizeof(r2), "/sys"));
The path_resolve(3) function assures correct result, but don't forget
|