tfStrNCmp

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfStrNCmp (
const char TM_FAR * stringPtr1,
const char TM_FAR * stringPtr2,
unsigned int nBytes
);


Function Description

This function alphabetically compares up to 'nBytes' of the two strings.


Parameters

  • stringPtr1
    Pointer to the first string.
  • stringPtr2
    Pointer to the second string.
  • nBytes
    Number of bytes to compare.


Returns

  • < 0
    stringPtr1 is less than stringPtr2
  • 0
    stringPtr1 is equal to stringPtr2
  • > 0
    stringPtr1 is greater than stringPtr2


Table of Contents >> Programmer's Reference