X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsupport%2Fstrfuncs.cpp;h=21dabb5728c96bdc3f4b4ea3323452e7b5ae12f5;hp=8033df4fb38b96a4de822293289e311889b1f317;hb=76ab7b41832b63638b71e688c5c2c5216079dfff;hpb=bf7295a63667dcca309389ee6dd5328a3a25f22b diff --git a/libctsupport/strfuncs.cpp b/libctsupport/strfuncs.cpp index 8033df4..21dabb5 100644 --- a/libctsupport/strfuncs.cpp +++ b/libctsupport/strfuncs.cpp @@ -2,7 +2,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: strfuncs.cpp,v 1.1 2000/06/19 02:58:08 kevin Exp $ +** $Id: strfuncs.cpp,v 1.2 2000/06/19 18:16:44 kevin Exp $ ** ** 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 @@ -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)); }