2 * See the file LICENSE for redistribution information.
5 * Sleepycat Software. All rights reserved.
8 * Copyright (c) 1998 by Sun Microsystems, Inc.
14 #pragma ident "%Z%%M% %I% %E% SMI"
17 static const char sccsid
[] = "@(#)os_rpath.c 10.2 (Sleepycat) 10/24/97";
18 static const char sccsi2
[] = "%W% (Sun) %G%";
21 #ifndef NO_SYSTEM_INCLUDES
29 * Return the last path separator in the path or NULL if none found.
31 * PUBLIC: char *__db_rpath __P((const char *));
40 if (PATH_SEPARATOR
[1] != '\0') {
41 for (s
= path
; s
[0] != '\0'; ++s
)
42 if (strchr(PATH_SEPARATOR
, s
[0]) != NULL
)
45 for (s
= path
; s
[0] != '\0'; ++s
)
46 if (s
[0] == PATH_SEPARATOR
[0])
48 return ((char *)last
);