6
toupper
This routine is used to convert lower case letters to upper case letters.
Function Prototype: int toupper(int c);
Return Value: The uppercase value of c. If c is already an
uppercase letter it returns c.
isalpha
This routine determines if c is a member of the set a…z and A…Z
Function Prototype: int isalpha(int c);
Return Value: If c is part of the set it returns true (1), if it
is not a part of the set it returns a false (0).
strlen
This routine determines the length of the string that is passed in as a parameter.
The string must be null terminated.
Function Prototype: unsigned int strlen(const char *cs);
Return Value: The length of the string pointed to by cs.
strcpy
This routine makes a copy of string two to string one. The string to be copied
must be null terminated.
Function Prototype: char* strcpy(char *s1, char *s2);
Return Value: A pointer to s1.
out2hex
This outputs an 8-bit number on the screen as two hexadecimal numbers.
Function Prototype: void out2hex(unsigned int num);
Return Value: None
out4hex
This outputs a 16-bit number on the screen as four hexadecimal numbers.
Function Prototype: void out4hex(unsigned int num);
Return Value: None
SetUserVector
This routine is used for handling Interrupt Service Routines and will be described
in the section on interrupts.
Notes:
The printf, putchar, out2hex, and out4hex routines do not generate carriage returns
or line feeds when they are called. To do this you must include \n\r in either a
putchar or a printf statement.