33 #ifndef _RTXCHARSTR_H_ 34 #define _RTXCHARSTR_H_ 51 EXTERNRT
int rtxStricmp (
const char* str1,
const char* str2);
63 EXTERNRT
int rtxStrnicmp (
const char* str1,
const char* str2,
size_t count);
75 EXTERNRT
char*
rtxStrcat (
char* dest,
size_t bufsiz,
const char* src);
89 (
char* dest,
size_t bufsiz,
const char* src,
size_t nchars);
101 EXTERNRT
char*
rtxStrcpy (
char* dest,
size_t bufsiz,
const char* src);
119 (
char* dest,
size_t bufsiz,
const char* src,
size_t nchars);
148 (
char* dest,
size_t bufsiz,
const char* str1,
const char* str2,
149 const char* str3,
const char* str4,
const char* str5);
164 (
OSCTXT* pctxt,
const char* str1,
const char* str2,
165 const char* str3,
const char* str4,
const char* str5);
186 (OSINT32 value,
char* dest,
size_t bufsiz,
char padchar);
199 (OSUINT32 value,
char* dest,
size_t bufsiz,
char padchar);
201 #if !defined(_NO_INT64_SUPPORT) 213 (OSINT64 value,
char* dest,
size_t bufsiz,
char padchar);
226 (OSUINT64 value,
char* dest,
size_t bufsiz,
char padchar);
241 (
size_t value,
char* dest,
size_t bufsiz,
char padchar);
268 (
const char* hexstr,
size_t nchars, OSOCTET* binbuf,
size_t bufsize);
294 (
const char* cstr, OSSIZE ndigits, OSINT32* pvalue);
EXTERNRT int rtxCharStrToUInt16(const char *cstr, OSUINT16 *pvalue)
This function converts the given character string to an unsigned 16-bit integer value.
EXTERNRT int rtxCharStrToInt64(const char *cstr, OSINT64 *pvalue)
This function converts the given character string to a signed 64-bit integer value.
EXTERNRT int rtxCharStrToUInt64(const char *cstr, OSUINT64 *pvalue)
This function converts the given character string to an unsigned 64-bit integer value.
EXTERNRT int rtxUInt64ToCharStr(OSUINT64 value, char *dest, size_t bufsiz, char padchar)
This function converts an unsigned 64-bit integer into a character string.
EXTERNRT char * rtxStrTrimEnd(char *s)
This function trims whitespace from the end of a string.
EXTERNRT char * rtxStrdup(OSCTXT *pctxt, const char *src)
This function creates a duplicate copy of a null-terminated string.
EXTERNRT int rtxCharStrToInt(const char *cstr, OSINT32 *pvalue)
This function converts the given character string to a signed 32-bit integer value.
EXTERNRT int rtxUIntToCharStr(OSUINT32 value, char *dest, size_t bufsiz, char padchar)
This function converts an unsigned 32-bit integer into a character string.
EXTERNRT int rtxCharStrnToInt(const char *cstr, OSSIZE ndigits, OSINT32 *pvalue)
This function converts up to the given number of digits from the given character string to a signed 3...
EXTERNRT int rtxHexCharsToBin(const char *hexstr, size_t nchars, OSOCTET *binbuf, size_t bufsize)
This function converts the given hex string to binary.
Common run-time context definitions.
EXTERNRT int rtxIntToCharStr(OSINT32 value, char *dest, size_t bufsiz, char padchar)
This function converts a signed 32-bit integer into a character string.
EXTERNRT int rtxSizeToCharStr(size_t value, char *dest, size_t bufsiz, char padchar)
This function converts a value of type 'size_t' into a character string.
EXTERNRT char * rtxStrncpy(char *dest, size_t bufsiz, const char *src, size_t nchars)
This function copies the given number of characters from a string to a target buffer.
EXTERNRT int rtxHexCharsToBinCount(const char *hexstr, size_t nchars)
This function returns a count of the number of bytes the would result from the conversion of a hexade...
EXTERNRT int rtxStricmp(const char *str1, const char *str2)
This is an implementation of the non-standard stricmp function.
EXTERNRT int rtxStrnicmp(const char *str1, const char *str2, size_t count)
This is an implementation of the non-standard stricmp function.
EXTERNRT char * rtxStrcat(char *dest, size_t bufsiz, const char *src)
This function concatanates the given string onto the string buffer.
EXTERNRT int rtxCharStrToInt8(const char *cstr, OSINT8 *pvalue)
This function converts the given character string to a signed 8-bit integer value.
EXTERNRT char * rtxStrncat(char *dest, size_t bufsiz, const char *src, size_t nchars)
This function concatanates the given number of characters from the given string onto the string buffe...
EXTERNRT char * rtxStrcpy(char *dest, size_t bufsiz, const char *src)
This function copies a null-terminated string to a target buffer.
EXTERNRT char * rtxStrDynJoin(OSCTXT *pctxt, const char *str1, const char *str2, const char *str3, const char *str4, const char *str5)
This function allocates memory for and concatanates up to five substrings together into a single stri...
EXTERNRT int rtxCharStrToInt16(const char *cstr, OSINT16 *pvalue)
This function converts the given character string to a signed 16-bit integer value.
Run-time context structure.
EXTERNRT int rtxCharStrToUInt(const char *cstr, OSUINT32 *pvalue)
This function converts the given character string to an unsigned 32-bit integer value.
EXTERNRT int rtxCharStrToUInt8(const char *cstr, OSUINT8 *pvalue)
This function converts the given character string to an unsigned 8-bit integer value.
EXTERNRT const char * rtxStrJoin(char *dest, size_t bufsiz, const char *str1, const char *str2, const char *str3, const char *str4, const char *str5)
This function concatanates up to five substrings together into a single string.
EXTERNRT int rtxInt64ToCharStr(OSINT64 value, char *dest, size_t bufsiz, char padchar)
This function converts a signed 64-bit integer into a character string.