CLUE - Self Study Modules
Instructions
File Link:
a02.pdf
Just as we did with the Handy Arrays Library, we are going to go back to our Handy Strings Library
in order to apply what we just learned.
Implementing str_length
File Link:
str_length.mp4
Let us start by iterating over a string to measure its length
Implementing str_compare
File Link:
str_compare.mp4
Determining if two strings are the same will allow us to go just one step above the previous exercise in
terms of difficulty.
Implementing str_allocate
File Link:
str_allocate.mp4
Now on to the serious stuff; allocating strings at runtime.
Implementing str_deallocate
File Link:
str_deallocate.mp4
Trivial yet essential; let's make sure we are able to free the memory we used.
Implementing str_clone
File Link:
str_clone.mp4
Same progression than with HAL, we are now preforming a "dup" of a string.
Implementing str_gather
File Link:
str_gather.mp4
Tiny bit more ellaborate "dup" in so far that we take two strings & "dup" them one
after the other in a new one. Please note how we're using previously written functions.
Implementing str_extract
File Link:
str_extract.mp4
Same than with HAL but applied to strings.
This material is based in part upon work supported by the National Science Foundation under award number DUE CCLI 0836863.
Any opinions, findings, and conclusions or recommendations expressed in this publication are those of the author(s) and do not
necessarily reflect the views of the National Science Foundation.