diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-16 16:36:30 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-16 16:36:30 +0000 |
commit | c2dd0fae35b41568b8d8d820587618da29b80a39 (patch) | |
tree | 0689685ea0e505505e759686035d2294696fcb31 /nuttx/include/ctype.h | |
parent | 416485cff9b9dca2326969e026f9f1cdbec914f6 (diff) | |
download | px4-nuttx-c2dd0fae35b41568b8d8d820587618da29b80a39.tar.gz px4-nuttx-c2dd0fae35b41568b8d8d820587618da29b80a39.tar.bz2 px4-nuttx-c2dd0fae35b41568b8d8d820587618da29b80a39.zip |
cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1256 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/ctype.h')
-rw-r--r-- | nuttx/include/ctype.h | 50 |
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 */ |