30-Days-Of-CPP
30-Days-Of-CPP copied to clipboard
String functions
trafficstars
Fix #365
Common String Functions:
* strlen(str): Calculates string length (excluding null terminator).
* strcpy(dest, src): Copies a string (caution: buffer overflow risk).
* strcat(dest, src): Appends a string to another (caution: buffer overflow risk).
* strcmp(str1, str2): Compares strings lexicographically.
* strstr(str1, str2): Finds the first occurrence of a substring.
Important Considerations:
*Memory Management
*Return Types
Conclusion:
* Stresses the importance of string functions for C++ string manipulation.
* Advises prioritizing memory safety when using these functions.
@subhadipbhowmik kindly review
@subhadipbhowmik please review.