String handling routines in the C standard library
The C standard library allows us to manage strings in a few ways. It also allows conversion between strings and numbers.
The standard C library, (which you can load into your program by including the statement #include <string.h>
at the top of your program), contains many useful routines for manipulating these null-terminated strings.
I suggest you consult a reference source (or Wikipedia, e.g. C String Handling) for a list (it’s relatively long) of all the functions that exist for manipulating null-terminated strings in C. There are functions for copying strings, concatenating strings, getting the length of strings, comparing strings, etc.
An example: Concatenating two strings
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy