10-64
BajaPPC-750: Monitor
10.15.20 Unexpected Interrupt Handler
SYNOPSIS
SetUnExpIntFunct(unsigned long Funct)
DESCRIPTION
If desired, a program can call the
SetUnExpIntFunct
function to attach its own
interrupt handler to all unexpected interrupts. This function attaches the handler
specified by
Funct
. The new interrupt handler must determine the source of the
unexpected interrupt and remove it.
10.15.21 Strings
SYNOPSIS
int CmpStr(char *Str1, char *Str2)
int StrCmp(char *Str1, char *Str2)
void StrCpy(char *Dest, char *Source)
int StrLen(char *Str)
void StrCat(char *DestStr, char *SrcStr)
DESCRIPTION
These functions provide the basic string manipulation functions necessary to
compare, copy, concatenate, and determine the length of strings.
The function
CmpStr
compares the two null terminated strings pointed to
by
Str1
and
Str2
. If they are equal, it returns TRUE; otherwise, it returns
FALSE. Note that this version does not act the same as the UNIX®
strcmp
function.
CmpStr
is not case-sensitive and only matches characters up to the
length of
Str1
. This is useful for pattern matching and other functions.
The function
StrCmp
compares the two null terminated strings pointed to
by
Str1
and
Str2
. If they are equal, it returns zero; otherwise, it returns the dif-
ference between the first two characters in the strings that fail to match (not
case-sensitive). Note that this function is not the same as the UNIX
strcmp
function, which is case-sensitive.
The function
StrCpy
copies the null terminated string
Source
into the string
specified by
Dest
. There are no checks to verify that the string is large enough
or is null terminated. The only limit is the monitor-defined constant MAXLN
(80), which is the largest allowed string length the monitor supports. The
length of the string is returned to the calling function.
Summary of Contents for BajaPPC-750
Page 2: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Page 4: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Page 7: ......
Page 19: ...xii BajaPPC 750 Contents...
Page 57: ...3 12 BajaPPC 750 Central Processing Unit May 2002...
Page 77: ...5 12 BajaPPC 750 PMC PCI Interface May 2002...
Page 111: ...6 34 BajaPPC 750 VMEbus Interface May 2002...
Page 135: ...8 18 BajaPPC 750 Serial and Parallel I O May 2002...
Page 207: ...10 68 BajaPPC 750 Monitor May 2002...