Lecture 9 Flashcards
Why has unix evolved to use single letter arguments?
Because it’s easier to use -af instead of -a -f
What does stlen do?
Returns the number of characters in the string?
What does strcmp do?
Compare two strings
strcopy?
Copy one string to another
What does strcat do?
Append one string to another
What does strchr do?
Search a string for one character
What is strstr?
Search for a string for a substring
What is strtok?
Extract the next token from a string
What does fgets do?
Read in a string
What does sscanf do?
Extracts elements from a string
What does snprintf do?
Create a string from a pattern
how do we check for a letter?
isalpha
How do we check for a digit?
isdigit
How do we check for a lower case letter?
islower
How do we check for an upper case alpha?
isupper