Lecture 26: String Functions
Wednesday, May 2, 2012
Reading Assigned: None
Homework Due: Homework 12
Homework Assigned: None
Classwork Assigned: Classwork 15
Topics Covered:
- Homework 12 review
- Quiz 4 - Any questions for me to review?
- Quiz 5 next Monday study guide
- String functions
- The C standard library has many functions to operate on strings
- You can use "man" to find out more, type the command "man string.h"
- You can also look online
- Some interesting functions:
- Almost all of these functions take and return character pointers
- How would we implement strlen?
- How would we implement strcpy?
- How would we implement strncpy?
- How does strstr work? How would we implement it?
- How would we use the return value of strstr?
- How does strtok work?