String manipulation in C
Hi,
I'm sorry, but I kind of a newbie in C. In C, how do I check that a string starts with a specified string? For example: startsWith("ls", "ls -la"); Thanks, Pedro |
I just found the solution.
I only had to use strncmp. |
Quote:
http://www.cppreference.com http://www.cplusplus.com (Just use the search bar above and look through what it finds as relevant.) Enjoy. -AM |
All times are GMT -5. The time now is 11:23 AM. |