db

os_rpath.c

Go to the documentation of this file.
00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 1997, 1998, 1999, 2000
00005  * Sleepycat Software. All rights reserved.
00006  */
00007 
00008 #include "config.h"
00009 
00010 #ifndef lint
00011 static const char revid[] = "$Id: os__rpath_8c-source.html,v 1.1 2008年06月08日 10:21:29 sebdiaz Exp $";
00012 #endif /* not lint */
00013 
00014 #ifndef NO_SYSTEM_INCLUDES
00015 #include <string.h>
00016 #endif
00017 
00018 #include "db_int.h"
00019 
00020 /*
00021  * CDB___db_rpath --
00022  * Return the last path separator in the path or NULL if none found.
00023  *
00024  * PUBLIC: char *CDB___db_rpath __P((const char *));
00025  */
00026 char *
00027 CDB___db_rpath(path)
00028 const char *path;
00029 {
00030 const char *s, *last;
00031 
00032 last = NULL;
00033 if (PATH_SEPARATOR[1] != '0円') {
00034 for (s = path; s[0] != '0円'; ++s)
00035 if (strchr(PATH_SEPARATOR, s[0]) != NULL)
00036 last = s;
00037 } else
00038 for (s = path; s[0] != '0円'; ++s)
00039 if (s[0] == PATH_SEPARATOR[0])
00040 last = s;
00041 return ((char *)last);
00042 }

Generated on Sun Jun 8 10:56:38 2008 for GNUmifluz by doxygen 1.5.5

AltStyle によって変換されたページ (->オリジナル) /