X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsupport%2Fstrfuncs.cpp;h=d549ece92db94acc30540e26d79db46ead876ad0;hp=8033df4fb38b96a4de822293289e311889b1f317;hb=8a7697ce57b56cdc43698cd1241ad98d49f9b5ac;hpb=99dd1d6ed10db1f669a5fe6af71225a50fc0ddfb diff --git a/libctsupport/strfuncs.cpp b/libctsupport/strfuncs.cpp index 8033df4..d549ece 100644 --- a/libctsupport/strfuncs.cpp +++ b/libctsupport/strfuncs.cpp @@ -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 -#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(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(p)); }