2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 1997, 1998
5 * Sleepycat Software. All rights reserved.
11 static const char sccsid
[] = "@(#)os_rpath.c 10.3 (Sleepycat) 4/10/98";
14 #ifndef NO_SYSTEM_INCLUDES
22 * Return the last path separator in the path or NULL if none found.
24 * PUBLIC: char *__db_rpath __P((const char *));
33 if (PATH_SEPARATOR
[1] != '\0') {
34 for (s
= path
; s
[0] != '\0'; ++s
)
35 if (strchr(PATH_SEPARATOR
, s
[0]) != NULL
)
38 for (s
= path
; s
[0] != '\0'; ++s
)
39 if (s
[0] == PATH_SEPARATOR
[0])
41 return ((char *)last
);