๐ŸŒ
W3Schools
w3schools.com โ€บ c โ€บ c_ref_string.php
C string (string.h) Library Reference
C Examples C Real-Life Examples C Exercises C Quiz C Code Challenges C Compiler C Syllabus C Study Plan C Interview Q&A C Certificate ... The <string.h> library has many functions that allow you to perform tasks on strings.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ home โ€บ c_standard_library โ€บ c standard library string functions
C Standard Library String Functions
August 29, 2012 - The string.h header defines one variable type, one macro, and various functions for manipulating arrays of characters. Following is the variable type defined in the header string.h โˆ’
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ c language โ€บ c-library-string-h
C Library - <string.h> - GeeksforGeeks
July 23, 2025 - string.h is a standard header file in the C language that contains functions for manipulating strings (arrays of characters).
๐ŸŒ
Programiz
programiz.com โ€บ c-programming โ€บ library-function โ€บ string.h
C string.h
The C <string.h> header file declares a set of functions to work strings.
๐ŸŒ
Wikibooks
en.wikibooks.org โ€บ wiki โ€บ C_Programming โ€บ string.h
C Programming/string.h - Wikibooks, open books for an open world
December 17, 2006 - string.h is the header in the C standard library for the C programming language which contains macro definitions, constants and declarations of functions and types used not only for string handling but also various memory handling functions; the name is thus something of a misnomer.
๐ŸŒ
cppreference.com
en.cppreference.com โ€บ w โ€บ c โ€บ header โ€บ string.html
Cppreference
This header provides functions for handling null-terminated byte strings. #define __STDC_VERSION_STRING_H__ 202311L #define NULL /* see description */ typedef /* see description */ size_t; void* memcpy(void* restrict s1, const void* restrict s2, size_t n); void* memccpy(void* restrict s1, const void* restrict s2, int c, size_t n); void* memmove(void* s1, const void* s2, size_t n); char* strcpy(char* restrict s1, const char* restrict s2); char* strncpy(char* restrict s1, const char* restrict s2, size_t n); char* strdup(const char* s); char* strndup(const char* s, size_t n); char* strcat(char* r
๐ŸŒ
Wikibooks
en.wikibooks.org โ€บ wiki โ€บ C_Programming โ€บ string.h โ€บ Function_reference
C Programming/string.h/Function reference - Wikibooks, open books for an open world
Some systems instead provide this functionality with functions named stricmp or strcmpi. To compare a subset of both strings with case-insensitivity, various systems may provide strncasecmp, strnicmp or strncmpi. ... #include <stdio.h> #include <stdlib.h> #include <string.h> int main (int argc, char **argv) { int v; if (argc < 3) { fprintf (stderr, "Compares two strings\nUsage: %s string1 string2\n",argv[0]); return EXIT_FAILURE; } v = strcmp (argv[1], argv[2]); if (v < 0) printf ("'%s' is less than '%s'.\n", argv[1], argv[2]); else if (v == 0) printf ("'%s' equals '%s'.\n", argv[1], argv[2]); else if (v > 0) printf ("'%s' is greater than '%s'.\n", argv[1], argv[2]); return 0; }
๐ŸŒ
Scaler
scaler.com โ€บ home โ€บ topics โ€บ c library -
C Library - <string.h> - Scaler Topics
October 13, 2023 - We can include the string.h in ... can perform operations like comparing two strings, concatenating strings, copying one string to another, and performing various string manipulation operations....
๐ŸŒ
IBM
ibm.com โ€บ docs โ€บ en โ€บ i โ€บ 7.4.0
IBM Documentation
We cannot provide a description for this page right now
Find elsewhere
๐ŸŒ
The Open Group
pubs.opengroup.org โ€บ onlinepubs โ€บ 7908799 โ€บ xsh โ€บ string.h.html
Opengroup
Null pointer constant. ... As described in <stddef.h>. The following are declared as functions and may also be defined as macros.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ c language โ€บ string-functions-in-c
C String Functions - GeeksforGeeks
July 26, 2025 - The strlen() function is used to find the length of a string. It returns the number of characters in a string, excluding the null terminator ('\0'). ... #include <stdio.h> #include <string.h> int main() { char s[] = "Gfg"; // Finding and printing ...
๐ŸŒ
W3Schools
w3schools.com โ€บ c โ€บ c_strings_functions.php
C String Functions
To use them, you must include the <string.h> header file in your program: ... In the Strings chapter, we used sizeof to get the size of a string/array.
๐ŸŒ
Fresh2Refresh
fresh2refresh.com โ€บ home โ€บ c programming tutorial โ€บ c โ€“ function โ€บ c โ€“ string.h library functions
C string.h library functions | C Function | Fresh2Refresh
July 18, 2020 - C string.h library functions:All C inbuilt functions which are declared in string.h header file are given below. The source code for string.h header file
๐ŸŒ
TechOnTheNet
techonthenet.com โ€บ c_language โ€บ standard_library_functions โ€บ string_h โ€บ index.php
C Language: Standard Library Functions - string.h
In the C Programming Language, the Standard Library Functions are divided into several header files. The following is a list of functions found within the <string.h> header file:
๐ŸŒ
Cplusplus
cplusplus.com โ€บ reference โ€บ cstring
<cstring> (string.h)
C Strings This header file defines several functions to manipulate C strings and arrays.
๐ŸŒ
Wikipedia
en.wikipedia.org โ€บ wiki โ€บ C_string_handling
C string handling - Wikipedia
December 9, 2025 - Functions for handling memory buffers can process sequences of bytes that include null-byte as part of the data. Names of these functions typically start with mem, as opposite to the str prefix. Most of the functions that operate on C strings are declared in the string.h header (cstring in C++), while functions that operate on C wide strings are declared in the wchar.h header (cwchar in C++).