Difference between revisions of "List of functions to document"

From Pinguino
Jump to: navigation, search
(Page to list possibly undocumented functions)
 
m (Correct layout)
Line 2: Line 2:
  
 
= ctype.h =
 
= ctype.h =
extern char  iscntrl  (unsigned char )  ;
+
extern char  iscntrl  (unsigned char )  ;
extern char  isdigit  (unsigned char )  ;
+
extern char  isdigit  (unsigned char )  ;
extern char  isgraph  (unsigned char )  ;
+
extern char  isgraph  (unsigned char )  ;
extern char  islower  (unsigned char )  ;
+
extern char  islower  (unsigned char )  ;
extern char  isupper  (unsigned char )  ;
+
extern char  isupper  (unsigned char )  ;
extern char  isprint  (unsigned char )  ;
+
extern char  isprint  (unsigned char )  ;
extern char  ispunct  (unsigned char )  ;
+
extern char  ispunct  (unsigned char )  ;
extern char  isspace  (unsigned char )  ;
+
extern char  isspace  (unsigned char )  ;
extern char  isxdigit  (unsigned char )  ;
+
extern char  isxdigit  (unsigned char )  ;
isalnum(c)
+
isalnum(c)
isalpha(c)
+
isalpha(c)
tolower(c)
+
tolower(c)
toupper(c)
+
toupper(c)
toascii(c)
+
toascii(c)
  
 
= math.h =
 
= math.h =
  
 
[[sin]], [[cos]], [[tan]], [[abs]], [[pow]] and [[sqrt]] are already available.
 
[[sin]], [[cos]], [[tan]], [[abs]], [[pow]] and [[sqrt]] are already available.
/* Trigonometric functions */
+
/* Trigonometric functions */
float cotf(const float x) _MATH_REENTRANT;
+
float cotf(const float x) _MATH_REENTRANT;
float asinf(const float x) _MATH_REENTRANT;
+
float asinf(const float x) _MATH_REENTRANT;
float acosf(const float x) _MATH_REENTRANT;
+
float acosf(const float x) _MATH_REENTRANT;
float atanf(const float x) _MATH_REENTRANT;
+
float atanf(const float x) _MATH_REENTRANT;
float atan2f(const float x, const float y);
+
float atan2f(const float x, const float y);
 
+
/* Hyperbolic functions */
+
/* Hyperbolic functions */
float sinhf(const float x) _MATH_REENTRANT;
+
float sinhf(const float x) _MATH_REENTRANT;
float coshf(const float x) _MATH_REENTRANT;
+
float coshf(const float x) _MATH_REENTRANT;
float tanhf(const float x) _MATH_REENTRANT;
+
float tanhf(const float x) _MATH_REENTRANT;
 
+
/* Exponential, logarithmic and power functions */
+
/* Exponential, logarithmic and power functions */
float expf(const float x);
+
float expf(const float x);
float logf(const float x) _MATH_REENTRANT;
+
float logf(const float x) _MATH_REENTRANT;
float log10f(const float x) _MATH_REENTRANT;
+
float log10f(const float x) _MATH_REENTRANT;
 
+
/* Nearest integer, absolute value, and remainder functions */
+
/* Nearest integer, absolute value, and remainder functions */
float frexpf(const float x, int *pw2);
+
float frexpf(const float x, int *pw2);
float ldexpf(const float x, const int pw2);
+
float ldexpf(const float x, const int pw2);
float ceilf(float x) _MATH_REENTRANT;
+
float ceilf(float x) _MATH_REENTRANT;
float floorf(float x) _MATH_REENTRANT;
+
float floorf(float x) _MATH_REENTRANT;
float modff(float x, float * y);
+
float modff(float x, float * y);
  
 
= stdlib.h =
 
= stdlib.h =
/* convert a ASCII string to float */
+
/* convert a ASCII string to float */
float atof (char *);
+
float atof (char *);
 
+
/* convert a ASCII string to integer */
+
/* convert a ASCII string to integer */
int atoi (char *);
+
int atoi (char *);
 
+
/* convert a ASCII string to long */
+
/* convert a ASCII string to long */
long atol (char *);
+
long atol (char *);
 
+
/* convert an unsigned/signed integer to ASCII string */
+
/* convert an unsigned/signed integer to ASCII string */
void uitoa(unsigned int, __data char *, unsigned char);
+
void uitoa(unsigned int, __data char *, unsigned char);
void itoa(int, __data char*, unsigned char);
+
void itoa(int, __data char*, unsigned char);
 
+
/* convert an unsigned/signed long integer to ASCII string */
+
/* convert an unsigned/signed long integer to ASCII string */
void ultoa(unsigned long, __data char *, unsigned char);
+
void ultoa(unsigned long, __data char *, unsigned char);
void ltoa(long, __data char*, unsigned char);
+
void ltoa(long, __data char*, unsigned char);
 
+
/* helper functions: convert a float to ASCII string */
+
/* helper functions: convert a float to ASCII string */
extern char x_ftoa(float, __data char *, unsigned char, unsigned char);
+
extern char x_ftoa(float, __data char *, unsigned char, unsigned char);
 
+
/* George M. Gallant's version of ftoa() */
+
/* George M. Gallant's version of ftoa() */
extern void g_ftoa(__data char *, float, char);
+
extern void g_ftoa(__data char *, float, char);
  
  
 
= string.h =
 
= string.h =
char *strcat (char *, char *);
+
char *strcat (char *, char *);
char *strchr (char *, char);
+
char *strchr (char *, char);
int  strcmp (char *, char *);
+
int  strcmp (char *, char *);
char *strcpy (char *, char *);
+
char *strcpy (char *, char *);
int  strcspn(char *, char *);
+
int  strcspn(char *, char *);
int  strlen (char *);
+
int  strlen (char *);
char *strlwr (char *);
+
char *strlwr (char *);
char *strncat(char *, char *, size_t );
+
char *strncat(char *, char *, size_t );
int  strncmp(char *, char *, size_t );
+
int  strncmp(char *, char *, size_t );
char *strncpy(char *, char *, size_t );
+
char *strncpy(char *, char *, size_t );
char *strpbrk(char *, char *);
+
char *strpbrk(char *, char *);
char *strrchr(char *, char);
+
char *strrchr(char *, char);
int  strspn (char *, char *);
+
int  strspn (char *, char *);
char *strstr (char *, char *);
+
char *strstr (char *, char *);
char *strtok (char *, char *);
+
char *strtok (char *, char *);
char *strupr (char *);
+
char *strupr (char *);
 
+
void *memccpy(void *, void *, char, size_t);
+
void *memccpy(void *, void *, char, size_t);
void *memchr(void *, char, size_t);
+
void *memchr(void *, char, size_t);
int  memcmp (void *, void *, size_t);
+
int  memcmp (void *, void *, size_t);
void *memcpy (void *, void *, size_t);
+
void *memcpy (void *, void *, size_t);
void *memmove (void *, void *, size_t);
+
void *memmove (void *, void *, size_t);
void *memrchr(void *, char, size_t);
+
void *memrchr(void *, char, size_t);
void *memset (_STRING_SPEC void *, unsigned char, size_t );
+
void *memset (_STRING_SPEC void *, unsigned char, size_t );

Revision as of 15:08, 31 March 2011

Here is a list of functions defined in tools/share/sdcc/include/pic16; they may or may not work.

ctype.h

extern char  iscntrl   (unsigned char )  ;
extern char  isdigit   (unsigned char )  ;
extern char  isgraph   (unsigned char )  ;
extern char  islower   (unsigned char )  ;
extern char  isupper   (unsigned char )  ;
extern char  isprint   (unsigned char )  ;
extern char  ispunct   (unsigned char )  ;
extern char  isspace   (unsigned char )  ;
extern char  isxdigit  (unsigned char )  ;
isalnum(c)
isalpha(c)
tolower(c)
toupper(c)
toascii(c)

math.h

sin, cos, tan, abs, pow and sqrt are already available.

/* Trigonometric functions */
float cotf(const float x) _MATH_REENTRANT;
float asinf(const float x) _MATH_REENTRANT;
float acosf(const float x) _MATH_REENTRANT;
float atanf(const float x) _MATH_REENTRANT;
float atan2f(const float x, const float y);

/* Hyperbolic functions */
float sinhf(const float x) _MATH_REENTRANT;
float coshf(const float x) _MATH_REENTRANT;
float tanhf(const float x) _MATH_REENTRANT;

/* Exponential, logarithmic and power functions */
float expf(const float x);
float logf(const float x) _MATH_REENTRANT;
float log10f(const float x) _MATH_REENTRANT;

/* Nearest integer, absolute value, and remainder functions */
float frexpf(const float x, int *pw2);
float ldexpf(const float x, const int pw2);
float ceilf(float x) _MATH_REENTRANT;
float floorf(float x) _MATH_REENTRANT;
float modff(float x, float * y);

stdlib.h

/* convert a ASCII string to float */
float atof (char *);

/* convert a ASCII string to integer */
int atoi (char *);

/* convert a ASCII string to long */
long atol (char *);

/* convert an unsigned/signed integer to ASCII string */
void uitoa(unsigned int, __data char *, unsigned char);
void itoa(int, __data char*, unsigned char);

/* convert an unsigned/signed long integer to ASCII string */
void ultoa(unsigned long, __data char *, unsigned char);
void ltoa(long, __data char*, unsigned char);

/* helper functions: convert a float to ASCII string */
extern char x_ftoa(float, __data char *, unsigned char, unsigned char);

/* George M. Gallant's version of ftoa() */
extern void g_ftoa(__data char *, float, char);


string.h

char *strcat (char *, char *);
char *strchr (char *, char);
int   strcmp (char *, char *);
char *strcpy (char *, char *);
int   strcspn(char *, char *);
int   strlen (char *);
char *strlwr (char *);
char *strncat(char *, char *, size_t );
int   strncmp(char *, char *, size_t );
char *strncpy(char *, char *, size_t );
char *strpbrk(char *, char *);
char *strrchr(char *, char);
int   strspn (char *, char *);
char *strstr (char *, char *);
char *strtok (char *, char *);
char *strupr (char *);

void *memccpy(void *, void *, char, size_t);
void *memchr(void *, char, size_t);
int   memcmp (void *, void *, size_t);
void *memcpy (void *, void *, size_t);
void *memmove (void *, void *, size_t);
void *memrchr(void *, char, size_t);
void *memset (_STRING_SPEC void *, unsigned char, size_t );