mirror of
https://github.com/elliotnunn/mac-rom.git
synced 2026-03-15 12:16:22 +00:00
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 );
|
|
|
|
}
|