C String Functions - C Programming Tutorial
C Course / Strings / C String Functions

C String Functions

BLUF: Understanding C String Functions is a foundational part of learning C programming. This tutorial explains the core principles and syntax needed to implement this concept effectively.
Core Programming Principle: C String Functions

C provides direct access to memory and system resources. Learn how C String Functions leverages this power in the lesson below.

1) strlen(string_name) returns the length of string name.
2) strcpy(destination, source) copies the contents of source string to destination string.
3) strcat(firststring, secondstring) concats or joins first string with second string. The result of the string is stored in first string.
4) strcmp(firststring, secondstring) compares the first string with second string. If both strings are same, it returns 0.
5) strrev(string) returns reverse string.
6) strlwr(string) returns string characters in lowercase.
7) strupr(string) returns string characters in uppercase.

Input Required

This code uses input(). Please provide values below:

Logic Practice
Install Logic Practice
Add to home screen for a faster app-like experience