TABLE OF CONTENTS


plm/string [ Modules ]

[ Top ] [ Modules ]

NAME

   String

DESCRIPTION

   Subroutines to manipulate null-terminated string

string/char_upper [ Functions ]

[ Top ] [ string ] [ Functions ]

NAME

   char_upper -- convert a character to uppercase

SYNOPSIS

   char_upper(c)

DESCRIPTION

   This function converts one character to uppercase.

string/parse_hex [ Functions ]

[ Top ] [ string ] [ Functions ]

NAME

   parse_hex -- convert hexadecimal string to number

SYNOPSIS

   parse_hex(p$str)

DESCRIPTION

   Convert a string representation of a hexadecimal number into an unsigned
   16-bit integer.  This function reads characters pointed by p$str and
   stops when a character other than 0-9, a-f, A-F is encountered.
   This function is case insensitive.

string/string_equal [ Functions ]

[ Top ] [ string ] [ Functions ]

NAME

   string_equal -- tell if two strings are equal

SYNOPSIS

   string_equal(p$str1, p$str2)

DESCRIPTION

   Compares two null-terminated strings and tells if they are equal are not.
   Both arguments p$str1 and p$str2 are pointers to the first character
   of the respective string.  Any of these strings can be empty, and
   should be null-terminated.

RETURN VALUE

   Returns the boolean value true if strings are equal and false otherwise.