summaryrefslogtreecommitdiff
path: root/nuttx/include/ctype.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/include/ctype.h')
-rw-r--r--nuttx/include/ctype.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/nuttx/include/ctype.h b/nuttx/include/ctype.h
index 67c157e2e..c91876047 100644
--- a/nuttx/include/ctype.h
+++ b/nuttx/include/ctype.h
@@ -1,7 +1,7 @@
-/************************************************************
- * ctype.h
+/****************************************************************************
+ * include/ctype.h
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -33,8 +33,8 @@
*
************************************************************/
-#ifndef __CTYPE_H
-#define __CTYPE_H
+#ifndef __INCLUDE_CTYPE_H
+#define __INCLUDE_CTYPE_H
/* There is no consistent ctype implementation, just a
* smattering of functions. Individually, they are okay, but
@@ -42,17 +42,17 @@
* if used extensively.
*/
-/************************************************************
+/****************************************************************************
* Included Files
************************************************************/
#include <sys/types.h>
-/************************************************************
+/****************************************************************************
* Definitions
************************************************************/
-/************************************************************
+/****************************************************************************
* Function: isspace
*
* Description:
@@ -67,7 +67,7 @@
((c) == ' ' || (c) == '\t' || (c) == '\n' || \
(c) == '\r' || (c) == '\f' || c== '\v')
-/************************************************************
+/****************************************************************************
* Function: isascii
*
* Description:
@@ -78,7 +78,7 @@
#define isascii(c) ((c) >= 0 && (c) <= 0x7f);
-/************************************************************
+/****************************************************************************
* Function: isprint
*
* Description:
@@ -88,7 +88,7 @@
#define isprint(c) ((c) >= 0x20 && (c) < 0x7f)
-/************************************************************
+/****************************************************************************
* Function: isgraph
*
* Description:
@@ -98,7 +98,7 @@
#define isgraph(c) ((c) > 0x20 && (c) < 0x7f)
-/************************************************************
+/****************************************************************************
* Function: iscntrl
*
* Description:
@@ -108,7 +108,7 @@
#define iscontrol(c) (!isprint(c))
-/************************************************************
+/****************************************************************************
* Function: islower
*
* Description:
@@ -118,7 +118,7 @@
#define islower(c) ((c) >= 'a' && (c) <= 'z')
-/************************************************************
+/****************************************************************************
* Function: isupper
*
* Description:
@@ -128,7 +128,7 @@
#define isupper(c) ((c) >= 'A' && (c) <= 'Z')
-/************************************************************
+/****************************************************************************
* Function: isalpha
*
* Description:
@@ -138,7 +138,7 @@
#define isalpha(c) (islower(c) || isupper(c))
-/************************************************************
+/****************************************************************************
* Function: isdigit
*
* Description:
@@ -148,7 +148,7 @@
#define isdigit(c) ((c) >= '0' && (c) <= '9')
-/************************************************************
+/****************************************************************************
* Function: isalnum
*
* Description:
@@ -158,7 +158,7 @@
#define isalnum(c) (isalpha(c) || isdigit(c))
-/************************************************************
+/****************************************************************************
* Function: ispunct
*
* Description:
@@ -169,7 +169,7 @@
#define ispunct(c) (isgraph(c) && !isalnum(c))
-/************************************************************
+/****************************************************************************
* Function: isxdigit
*
* Description:
@@ -183,7 +183,7 @@
((c) >= 'a' && (c) <= 'f') || \
((c) >= 'A' && (c) <= 'F'))
-/************************************************************
+/****************************************************************************
* Function: toupper
*
* Description:
@@ -194,7 +194,7 @@
#define toupper(c) \
(((c) >= 'a' && (c) <= 'z') ? ((c) - 'a' + 'A') : (c))
-/************************************************************
+/****************************************************************************
* Function: tolower
*
* Description:
@@ -205,11 +205,11 @@
#define tolower(c) \
(((c) >= 'A' && (c) <= 'Z') ? ((c) - 'A' + 'a') : (c))
-/************************************************************
+/****************************************************************************
* Public Type Definitions
************************************************************/
-/************************************************************
+/****************************************************************************
* Public Functions
************************************************************/
@@ -225,4 +225,4 @@ extern "C" {
}
#endif
-#endif /* __CTYPE_H */
+#endif /* __INCLUDE_CTYPE_H */