string(3) — Linux manual page

NAME | LIBRARY | SYNOPSIS | DESCRIPTION | SEE ALSO | COLOPHON

string(3)                Library Functions Manual               string(3)

NAME         top

       string - string operations

LIBRARY         top

       Standard C library (libc, -lc)

SYNOPSIS         top

       #include <string.h>
       #include <strings.h>

DESCRIPTION         top

   Copy
       strcpy(3)
       stpcpy(3)

   Catenate
       strcat(3)

   Duplicate
       strdup(3)
       strdupa(3)

   Compare
       streq(3)
       strcmp(3)
       strcasecmp(3)
       strcoll(3)
       strverscmp(3)

   Search
       strlen(3)
       strnul(3)
       strchrnul(3)
       strchr(3)
       strrchr(3)
       strpbrk(3)
       strstr(3)
       strcasestr(3)
       strspn(3)
       strcspn(3)

   Separate
       strsep(3)
       strtok(3)

   Others
       strxfrm(3)

SEE ALSO         top

       memory.h(3head), string_copying(7)

COLOPHON         top

       This page is part of the man-pages (Linux kernel and C library
       user-space interface documentation) project.  Information about
       the project can be found at 
       ⟨https://www.kernel.org/doc/man-pages/⟩.  If you have a bug report
       for this manual page, see
       ⟨https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING⟩.
       This page was obtained from the tarball man-pages-6.19.tar.gz
       fetched from
       ⟨https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/⟩ on
       2026-09-09.  If you discover any rendering problems in this HTML
       version of the page, or you believe there is a better or more up-
       to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not
       part of the original manual page), send a mail to
       man-pages@man7.org

Linux man-pages 6.19            2026-08-10                      string(3)

Pages that refer to this page: memeq(3)memory.h(3head)stpcpy(3)strcasecmp(3)strcasestr(3)strchr(3)strchrnul(3)strcmp(3)strcoll(3)strcpy(3)strdup(3)strdupa(3)streq(3)strfry(3)strlcpy(3)strlen(3)strnul(3)strpbrk(3)strrchr(3)strsep(3)strspn(3)strstr(3)strtok(3)strverscmp(3)strxfrm(3)string_copying(7)