You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prototype | char* ft_strsub(charconst*s,unsignedint start, size_t len);
Description | Allocates (with malloc(3)) and returns a “fresh” substring from the string given as argument. The substring begins at indexstart and is of size len. If start and len aren’t refer- ing to a valid substring, the behavior is undefined. If the allocation fails, the function returns NULL.
Param. #1 | The string from which create the substring.
Param. #2 | The start index of the substring.
Param. #3 | The size of the substring.
Return value | The substring.
Libc functions | malloc(3)
The text was updated successfully, but these errors were encountered:
Prototype | char* ft_strsub(charconst*s,unsignedint start, size_t len);
Description | Allocates (with malloc(3)) and returns a “fresh” substring from the string given as argument. The substring begins at indexstart and is of size len. If start and len aren’t refer- ing to a valid substring, the behavior is undefined. If the allocation fails, the function returns NULL.
Param. #1 | The string from which create the substring.
Param. #2 | The start index of the substring.
Param. #3 | The size of the substring.
Return value | The substring.
Libc functions | malloc(3)
The text was updated successfully, but these errors were encountered: