<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML ><HEAD ><TITLE >String Manipulation</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="The Linux Kernel API" HREF="book1.html"><LINK REL="UP" TITLE="Basic C Library Functions" HREF="c824.html"><LINK REL="PREVIOUS" TITLE="Basic C Library Functions" HREF="c824.html"><LINK REL="NEXT" TITLE="strcpy" HREF="r1221.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >The Linux Kernel API</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="c824.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Basic C Library Functions</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="r1221.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="AEN1219" ></A >String Manipulation</H1 ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="r1221.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strcpy</SPAN ></SPAN ></A > -- Copy a <TT CLASS="CONSTANT" >NUL</TT > terminated string </DT ><DT ><A HREF="r1252.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strncpy</SPAN ></SPAN ></A > -- Copy a length-limited, <TT CLASS="CONSTANT" >NUL-terminated</TT > string </DT ><DT ><A HREF="r1296.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strcat</SPAN ></SPAN ></A > -- Append one <TT CLASS="CONSTANT" >NUL-terminated</TT > string to another </DT ><DT ><A HREF="r1327.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strncat</SPAN ></SPAN ></A > -- Append a length-limited, <TT CLASS="CONSTANT" >NUL-terminated</TT > string to another </DT ><DT ><A HREF="r1368.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strcmp</SPAN ></SPAN ></A > -- Compare two strings </DT ><DT ><A HREF="r1398.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strncmp</SPAN ></SPAN ></A > -- Compare two length-limited strings </DT ><DT ><A HREF="r1435.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strchr</SPAN ></SPAN ></A > -- Find the first occurrence of a character in a string </DT ><DT ><A HREF="r1465.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strrchr</SPAN ></SPAN ></A > -- Find the last occurrence of a character in a string </DT ><DT ><A HREF="r1495.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strlen</SPAN ></SPAN ></A > -- Find the length of a string </DT ><DT ><A HREF="r1518.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strnlen</SPAN ></SPAN ></A > -- Find the length of a length-limited string </DT ><DT ><A HREF="r1548.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strpbrk</SPAN ></SPAN ></A > -- Find the first occurrence of a set of characters </DT ><DT ><A HREF="r1578.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strtok</SPAN ></SPAN ></A > -- Split a string into tokens </DT ><DT ><A HREF="r1611.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >memset</SPAN ></SPAN ></A > -- Fill a region of memory with the given value </DT ><DT ><A HREF="r1653.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >bcopy</SPAN ></SPAN ></A > -- Copy one area of memory to another </DT ><DT ><A HREF="r1699.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >memcpy</SPAN ></SPAN ></A > -- Copy one area of memory to another </DT ><DT ><A HREF="r1741.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >memmove</SPAN ></SPAN ></A > -- Copy one area of memory to another </DT ><DT ><A HREF="r1783.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >memcmp</SPAN ></SPAN ></A > -- Compare two areas of memory </DT ><DT ><A HREF="r1820.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >memscan</SPAN ></SPAN ></A > -- Find a character in an area of memory. </DT ><DT ><A HREF="r1862.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strstr</SPAN ></SPAN ></A > -- Find the first substring in a <TT CLASS="CONSTANT" >NUL</TT > terminated string </DT ><DT ><A HREF="r1893.html" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >memchr</SPAN ></SPAN ></A > -- Find a character in an area of memory. </DT ></DL ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="c824.html" ACCESSKEY="P" ><<< Previous</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="book1.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="r1221.html" ACCESSKEY="N" >Next >>></A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Basic C Library Functions</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="c824.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><SPAN CLASS="phrase" ><SPAN CLASS="PHRASE" >strcpy</SPAN ></SPAN ></TD ></TR ></TABLE ></DIV ></BODY ></HTML >