N64® Functions Menu

al - Audio Library Functions
etc - String Manipulation Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential




String Manipulation Functions

bcmp

Syntax

#include <ultra64.h>   /* os.h */
int bcmp(const void *s1, const void *s2, int length);

Arguments

  • s1 is the first byte string
  • s2 is the second byte string
  • length is the data length

Explanation
This function compares two specified byte strings. It is assumed that at least length bytes are secured for each byte string.

Return Value
The returned value is the result of the comparison.

0 Equal
1 Byte string 1 > byte string 2
-1 Byte string 1 < byte string 2

Comments
This function is designed for optimization at the assembler level, so the process can execute quickly.

See Also
bcopy
bzero

Revision History
1/2/1999 Completely rewritten




Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998-1999
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated March 1999