/** @file\r
+Function prototypes and defines for string routines.\r
\r
-Copyright (c) 2007 - 2008, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution. The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
\r
-Module Name:\r
-\r
- StringFuncs.c\r
-\r
-Abstract:\r
-\r
- Function prototypes and defines for string routines.\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
\r
//\r
// Remove leading whitespace\r
//\r
- for (Pos = String; isspace (*Pos); Pos++) {\r
+ for (Pos = String; isspace ((int)*Pos); Pos++) {\r
}\r
if (Pos != String) {\r
memmove (String, Pos, strlen (Pos) + 1);\r
// Remove trailing whitespace\r
//\r
for (Pos = String + strlen (String);\r
- ((Pos - 1) >= String) && (isspace (*(Pos - 1)));\r
+ ((Pos - 1) >= String) && (isspace ((int)*(Pos - 1)));\r
Pos--\r
) {\r
}\r
Output = NewStringList ();\r
\r
for (Pos = String, Item = 0; Pos < EndOfString; Item++) {\r
- while (isspace (*Pos)) {\r
+ while (isspace ((int)*Pos)) {\r
Pos++;\r
}\r
\r
for (EndOfSubString=Pos;\r
- (*EndOfSubString != '\0') && !isspace (*EndOfSubString);\r
+ (*EndOfSubString != '\0') && !isspace ((int)*EndOfSubString);\r
EndOfSubString++\r
) {\r
}\r
strcat (NewString, "\"");\r
}\r
strcat (NewString, "]");\r
- \r
+\r
return NewString;\r
}\r
\r