Motorola 68HC12 User Manual page 6

Table of Contents

Advertisement

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.
isalpha
This routine determines if c is a member of the set a...z and
Function Prototype: int isalpha(int c);
Return Value: If c is part of the set it returns true (1), if it
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.
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.
putchar or a printf statement.
uppercase letter it returns c.
is not a part of the set it returns a false (0).
If c is already an
To do this you must include \n\r in either a
6
A...Z
The string to be copied

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents