mirror of
https://github.com/elliotnunn/mac-rom.git
synced 2025-01-16 18:32:56 +00:00
4325cdcc78
Resource forks are included only for .rsrc files. These are DeRezzed into their data fork. 'ckid' resources, from the Projector VCS, are not included. The Tools directory, containing mostly junk, is also excluded.
56 lines
1.2 KiB
C
56 lines
1.2 KiB
C
/* --------------------------------------------------------------------------------------
|
|
|
|
Copyright © 1990-1991, Apple Computer, Inc, All Rights Reserved.
|
|
|
|
File: StringUtility.c
|
|
|
|
Author: John Farmer
|
|
|
|
Contains: Miscellaneous string utility routines.
|
|
|
|
Revisions: (most recent first):
|
|
|
|
ID Date Description
|
|
|
|
System 6.1.0 Changes:
|
|
|
|
<1> 07/17/91 John Farmer - Created file.
|
|
|
|
----------------------------------------------------------------------------------- */
|
|
|
|
|
|
// Include Statements
|
|
|
|
|
|
#include "BaseIncludes.h"
|
|
#include "StringUtility.proto"
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------
|
|
|
|
Routine: isEqual = ComparePascalString( firstString, secondString )
|
|
|
|
Purpose:
|
|
|
|
Warnings: None
|
|
|
|
----------------------------------------------------------------------------------- */
|
|
|
|
|
|
Boolean ComparePascalString( StringPtr firstStringPointer, StringPtr secondStringPointer )
|
|
|
|
{
|
|
|
|
// Locals
|
|
|
|
Integer stringIndex, stringCount;
|
|
|
|
stringIndex = 0;
|
|
stringCount = *firstStringPointer;
|
|
while ( (*firstStringPointer++ == *secondStringPointer++) && (stringIndex < stringCount) )
|
|
stringIndex++;
|
|
|
|
return( stringIndex == stringCount );
|
|
|
|
}
|