Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ft_strsub #12

Open
nz-nz opened this issue Jun 29, 2019 · 0 comments
Open

ft_strsub #12

nz-nz opened this issue Jun 29, 2019 · 0 comments
Assignees
Milestone

Comments

@nz-nz
Copy link
Owner

nz-nz commented Jun 29, 2019

 

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)

@nz-nz nz-nz self-assigned this Jun 29, 2019
@nz-nz nz-nz transferred this issue from nz-nz/42 Jul 15, 2019
@nz-nz nz-nz added this to the part 2 milestone Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant