summaryrefslogtreecommitdiffstats
path: root/source/registry/reg_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/registry/reg_util.c')
-rw-r--r--source/registry/reg_util.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/source/registry/reg_util.c b/source/registry/reg_util.c
index 165292cf2fe..9f19db2646a 100644
--- a/source/registry/reg_util.c
+++ b/source/registry/reg_util.c
@@ -97,3 +97,31 @@ void normalize_reg_path( pstring keyname )
strupper_m( keyname );
}
+/**********************************************************************
+ move to next non-delimter character
+*********************************************************************/
+
+char* reg_remaining_path( const char *key )
+{
+ static pstring new_path;
+ char *p;
+
+ if ( !key || !*key )
+ return NULL;
+
+ pstrcpy( new_path, key );
+ /* normalize_reg_path( new_path ); */
+
+ if ( !(p = strchr( new_path, '\\' )) )
+ {
+ if ( !(p = strchr( new_path, '/' )) )
+ p = new_path;
+ else
+ p++;
+ }
+ else
+ p++;
+
+ return p;
+}
+