X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=libctsupport%2Fstrfuncs.cpp;h=aa03d7e9ed453c369f9389abc58bcf84caeb9f9c;hb=ca7c001fce978b680543f8338a404b8c0701a935;hp=8033df4fb38b96a4de822293289e311889b1f317;hpb=99dd1d6ed10db1f669a5fe6af71225a50fc0ddfb;p=ctsim.git diff --git a/libctsupport/strfuncs.cpp b/libctsupport/strfuncs.cpp index 8033df4..aa03d7e 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: strfuncs.cpp,v 1.4 2001/01/28 19:10:18 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 @@ -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)); }