]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/ctype.h
StdLib: Remove EfiSocketLib and Ip4Config Protocol dependency.
[mirror_edk2.git] / StdLib / Include / ctype.h
index fb0e2fd7d346fa481c4fbb054a516dfda308b04d..d35367f52055b57eb8d5d04cb5242617029e0493 100644 (file)
@@ -171,6 +171,20 @@ int isxdigit(int c);
 **/\r
 int isascii(int c);\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 isDirSep(int c);\r
+\r
 /** The tolower function converts an uppercase letter to a corresponding\r
     lowercase letter.\r
 \r
@@ -218,6 +232,7 @@ __END_DECLS
   #define isspace(c)    (__isCClass( (int)c, (_CW)))\r
   #define isupper(c)    (__isCClass( (int)c, (_CU)))\r
   #define isxdigit(c)   (__isCClass( (int)c, (_CD | _CX)))\r
+  #define isDirSep(c)   (__isCClass( (int)c, (_C0)))\r
   #define tolower(c)    (__toLower((int)c))\r
   #define toupper(c)    (__toUpper((int)c))\r
 #endif  /* NO_CTYPE_MACROS */\r