]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Ctype/CClass.c
StdLib: Simple code cleanup
[mirror_edk2.git] / StdLib / LibC / Ctype / CClass.c
index 1e1e0fdccbfb2ef53082f33d1bf31c458ceb6b27..b9658441ae32d868a201be993e2776029734783b 100644 (file)
@@ -234,7 +234,7 @@ isblank(
   IN  int c\r
   )\r
 {\r
-  return (__isCClass( c, _CB));\r
+  return (__isCClass( c, (_CB)));\r
 }\r
 \r
 /** The isascii function tests that a character is one of the 128 7-bit ASCII characters.\r
@@ -251,3 +251,21 @@ isascii(
 {\r
   return ((c >= 0) && (c < 128));\r
 }\r
+\r
+/** Test whether a character is one of the characters used as a separator\r
+    between directory elements in a path.\r
+\r
+    Characters are '/', '\\'\r
+\r
+    This non-standard function is unique to this implementation.\r
+\r
+    @param[in]    c   The character to be tested.\r
+\r
+    @return   Returns nonzero (true) if and only if the value of the parameter c\r
+              can be classified as specified in the description of the function.\r
+**/\r
+int\r
+isDirSep(int c)\r
+{\r
+  return (__isCClass( c, (_C0)));\r
+}\r