30-Days-Of-CPP icon indicating copy to clipboard operation
30-Days-Of-CPP copied to clipboard

String functions

Open muskan42 opened this issue 1 year ago • 1 comments
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

muskan42 avatar Jun 21 '24 14:06 muskan42

@subhadipbhowmik please review.

muskan42 avatar Jun 30 '24 16:06 muskan42