[Home] [Prev] [Next] [Up]
pstrcpy
pstrcat
pstrcmp
Pascal string manipulation utilities
Usage:
#include <XDataUtil.h>
unsigned char *pstrcpy(unsigned char *dest, const unsigned char *src);
unsigned char *pstrcat(unsigned char *dest, const unsigned char *src);
long pstrcmp(const unsigned char *a, const unsigned char *b);
Description
These routines provide the Pascal equivalent to three commonly-used C string manipulation utilities.
pstrcpy copies the Pascal string from the src to the dest.
pstrcat concatenates the string in dest with the string in src.
pstrcmp compares the strings in a and b. This returns 0 if the strings are equal, a negative number if a < b, and a positive number if a > b.