Julio Sherfey
Thursday, November 10, 2011
How do you search for two characters at the end of a string in C?
Use strlen() to get the length of the string. Subtract 1 to get the last index, subtract 2 to get the second to last index.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment