Null Terminated String Functions

The following functions are provided for handling null-terminated strings. Null-terminated string functions

Function

Description

StrAlloc

Allocates a character buffer of a given size on the heap.

StrBufSize

Returns the size of a character buffer allocated using StrAlloc or StrNew.

StrCat

Concatenates two strings.

StrComp

Compares two strings.

StrCopy

Copies a string.

StrDispose

Disposes a character buffer allocated using StrAlloc or StrNew.

StrECopy

Copies a string and returns a pointer to the end of the string.

StrEnd

Returns a pointer to the end of a string.

StrFmt

Formats one or more values into a string.

StrlComp

Compares two strings without case sensitivity.

StrLCat

Concatenates two strings with a given maximum length of the resulting string.

StrLComp

Compares two strings for a given maximum length.

StrLCopy

Copies a string up to a given maximum length.

StrLen

Returns the length of a string.

StrLFmt

Formats one or more values into a string with a given maximum length.

StrLIComp

Compares two strings for a given maximum length without case sensitivity.

StrLower

Converts a string to lowercase.

StrMove Moves a block of characters from one string to another.

StrNew

Allocates a string on the heap.

StrPCopy

Copies a Pascal string to a null-terminated string.

StrPLCopy

Copies a Pascal string to a null-terminated string with a given maximum length.

StrPos

Returns a pointer to the first occurrence of a given substring within a string.

StrRScan

Returns a pointer to the last occurrence of a given character within a string.

StrScan

Returns a pointer to the first occurrence of a given character within a string.

StrUpper

Converts a string to uppercase.

Standard string-handling functions have multibyte-enabled counterparts that also implement locale-specific ordering for characters. Names of multibyte functions start with Ansi-. For example, the multibyte version of StrPos is AnsiStrPos. Multibyte character support is operating-system dependent and based on the current locale.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook


Post a comment