r7061: initial property settings
[ctsim.git] / libctsupport / strfuncs.cpp
index 8033df4fb38b96a4de822293289e311889b1f317..d549ece92db94acc30540e26d79db46ead876ad0 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************
 **  This is part of the CTSim program
-**  Copyright (C) 1983-2000 Kevin Rosenberg
+**  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: strfuncs.cpp,v 1.1 2000/06/19 02:58:08 kevin Exp $
+**  $Id$
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -19,7 +19,7 @@
 ******************************************************************************/
 
 #include <ctype.h>
-#include "kstddef.h"
+#include "ctsupport.h"
 
 
 /* NAME
@@ -38,7 +38,7 @@
  */
 
 
-const char*
+char*
 str_skip_head (const char* str, const char* const charlist) 
 {
   const char* p = str;
@@ -46,18 +46,18 @@ str_skip_head (const char* str, const char* const charlist)
   while (*p && (strchr (charlist, *p) != NULL))
     p++;
 
-  return (p);
+  return (const_cast<char*>(p));
 }
 
 char*
-str_skip_head (char* str, char* charlist) 
+str_skip_head (const char* str, char* charlist) 
 {
-  char* p = str;
+  const char* p = str;
 
   while (*p && (strchr (charlist, *p) != NULL))
     p++;
 
-  return (p);
+  return (const_cast<char*>(p));
 }