Learn C++ practically
and Get Certified.
Popular Tutorials
Start Learning C++Learn C++ Interactively
Try Programiz PROLearn C++ practically
and Get Certified.
Try Programiz PRO!
Learn C++ practically
and Get Certified.
C++ <cstring>
The C++ <cstring>
header file declares a set of functions to work with C style string (null terminated byte strings).
C++ memcpy()
Copies block of memory from source to destination
C++ memset()
copies character to beginning of string n times
C++ strcat()
appends copy of string to end of another string
C++ strchr()
searches for character in string
C++ strcmp()
Compare two strings
C++ strcpy()
Copies character string from source to destination
C++ strlen()
Returns length of given string
C++ strncmp()
compares two strings lexographically
C++ strncpy()
copies character string from source to destination
C++ strstr()
finds first occurrence of a substring in string
C++ strtok()
Split string based on delimiter