Elliot Nunn 4325cdcc78 Bring in CubeE sources
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.
2017-12-26 09:52:23 +08:00

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 );
}