C-library functions:

Please add :
#include <stdlib.h>
to your C-source.
memset
isalnum isalpha isascii isatty iscntrl iscons
isdigit isgraph islower isodigit isprint ispunct
isspace isupper iswhite isxdigit

atoi

    int atoi(char *s);

atoib

    int atoib(char *s, int b);

dtoi

    int dtoi(char *decstr, int *nbr);

utoi

    int utoi(char *decstr,int *nbr);

otoi

    int otoi(char *octstr, int *nbr);

xtoi

    int xtoi(char *hexstr, int *nbr);


itoa

    void itoa(int n, char * pstr);

itoab

    void itoab(int n, char *s, int b);

itod

    char * itod(int nbr, char str[], int sz);

itoo

    char * itoo(int nbr, char str[], int sz);

itou

    char * itou(int nbr, char str[], int sz);

itox

    char * itox(int nbr, char str[], int sz);


bcopy

    void bcopy(char *pSrc, char *pDest, int num);

bzero

    int bzero(char * ptr, int nbytes);

memset

    void memset(char *pMem, char ch, int num);
    Fills a memory-area (num bytes from address pMem) with the given byte-value ch.

reverse

    void reverse(char *s);

strcat

    void strcat(char * str1,char * str2);

strchr

    char * strchr(char * str, int chr);

strcmp

    int strcmp(char *s, char *t);


toascii

    int toascii(int c);

tolower

    int tolower(int c);

toupper

    int toupper(int c);


is-family

    Syntax
      int isalnum( int c );
      int isalpha( int c );
      int isascii( int c );
      int isatty( int c );
      int iscntrl( int c );
      int iscons( int c );
      int isdigit( int c );
      int isgraph( int c );
      int islower( int c );
      int isodigit( int c );
      int isprint( int c );
      int ispunct( int c );
      int isspace( int c );
      int isupper( int c );
      int isxdigit( int c );
      int iswhite( int c );
    Parameter Description
      c: Integer to be tested

    Each function in the is family tests a given integer value, returning a nonzero value if the integer satisfies the test condition and 0 if it does not. The ASCII character set is assumed.

    The is functions and their test conditions are listed below:


      Function

      Test Condition
      isalnumAlphanumeric ('A'-'Z', 'a'-'z', or '0'-'9')
      isalphaLetter ('A'-'Z' or 'a'-'z')
      isasciiASCII character (0x00 - 0x7F)
      isattyc is a device
      iscntrlControl character (0x00 - 0x1F or 0x7F)
      isconsc is the console device
      isdigitDigit ('0'-'9')
      isgraphPrintable character except space (0x21 - 0x7E)
      islowerLowercase letter ('a'-'z')
      isodigitOctal digit ('0'-'7')
      isprintPrintable character (0x20 - 0x7E)
      ispunctPunctuation character (all but alphanumeric and control characters)
      isspaceWhite-space character (0x09 - 0x0D or 0x20)
      isupperUppercase letter ('A'-'Z')
      iswhitec <= 0x20, c >= 0x7F
      isxdigitHexadecimal digit ('A'-'F','a'-'f', or '0'-'9')

      The isascii routine produces meaningful results for all integer values. However, the remaining routines produce a defined result only for integer values corresponding to the ASCII character set (that is, only where isascii holds true).

    Return Value

      These routines return a nonzero value if the integer satisfies the test condition and 0 if it does not.

HOME
(c) M. Domin and Bastian Schick
last modified 1998/01/28