Next Previous Contents

88. SLmake_nstring

Synopsis

Duplicate a substring

Usage

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

Description

This function is like SLmake_nstring except that it creates a null terminated string formed from the first n characters of s. Upon failure, it returns NULL, otherwise it returns the new string. When nolonger needed, the returned string should be freed with either free or SLfree.

See Also

SLmake_nstring, SLfree, SLang_create_nslstring


Next Previous Contents