Next Previous Contents

88. SLang_create_nslstring

Synopsis

Created a hashed substring

Usage

char *SLang_create_nslstring (char *s, unsigned int n)

Description

SLang_create_nslstring is like SLang_create_slstring except that only the first n characters of s are used to perform the string. Upon error, it returns NULL, otherwise it returns the hashed substring. Such a string must be freed by the function SLang_free_slstring.

Notes

Do not use free or SLfree to free the string returned by SLang_create_slstring or SLang_create_nslstring. Also it is important that no attempt is made to modify the hashed string returned by either of these functions. If one needs to modify a string, the functions SLmake_string or SLmake_nstring should be used instead.

See Also

SLang_free_slstring, SLang_create_slstring, SLmake_nstring


Next Previous Contents