C Language Zemi

  • C language
  • C standard library
  • here

string.h --Standard header for string manipulation and memory copy functions

This is an introduction to the functions for manipulating strings.

Copy of string

  • memcpy function-copy memory area in bytes
  • memmove function --Copy memory area in bytes (overlap OK)

String length

  • strlen function-get the length of the string

String search

  • strstr function-check if a string is included
  • strchr function-check if characters are included
  • strrchr function-check from behind if characters are included

Comparison of strings

  • strcmp function-Compare strings
  • strncmp function-Compare substrings

Associated Information

This site is originally Japanese.
Perl Club starts to translate it to English.
If you find wrong expressions, you can report them using Github Issue.
Perl Club