<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.cppreference.com/wiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://www.cppreference.com/wiki/feed.php">
        <title>C++ Reference c:string</title>
        <description></description>
        <link>http://www.cppreference.com/wiki/</link>
        <image rdf:resource="http://www.cppreference.com/wiki/lib/images/favicon.ico" />
       <dc:date>2010-09-09T09:54:39-07:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/atof?rev=1220725578&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/atoi?rev=1234997467&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/atol?rev=1228611225&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/isalnum?rev=1237767527&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/isalpha?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/iscntrl?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/isdigit?rev=1259330027&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/isgraph?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/islower?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/isprint?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/ispunct?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/isspace?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/isupper?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/isxdigit?rev=1244562380&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/memchr?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/memcmp?rev=1221697720&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/memcpy?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/memmove?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/memset?rev=1253027018&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/start?rev=1276799233&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strcat?rev=1239041580&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strchr?rev=1280874296&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strcmp?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strcoll?rev=1229712780&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strcpy?rev=1280873689&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strcspn?rev=1224024123&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strerror?rev=1251944255&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strlcat?rev=1233158758&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strlcpy?rev=1282117679&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strlen?rev=1242897649&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strncat?rev=1233159064&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strncmp?rev=1244546176&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strncpy?rev=1263365629&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strpbrk?rev=1260054859&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strrchr?rev=1224024123&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strspn?rev=1224024123&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strstr?rev=1268054123&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strtod?rev=1224024123&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strtok?rev=1280874609&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strtol?rev=1239969828&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strtoul?rev=1236045757&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strtrm?rev=1229159281&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/strxfrm?rev=1224024123&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/tolower?rev=1224024123&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.cppreference.com/wiki/c/string/toupper?rev=1262097776&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.cppreference.com/wiki/lib/images/favicon.ico">
        <title>C++ Reference</title>
        <link>http://www.cppreference.com/wiki/</link>
        <url>http://www.cppreference.com/wiki/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/atof?rev=1220725578&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-09-06T11:26:18-07:00</dc:date>
        <title>atof</title>
        <link>http://www.cppreference.com/wiki/c/string/atof?rev=1220725578&amp;do=diff</link>
        <description>atof

Syntax:

    #include &lt;cstdlib&gt;
    double atof( const char *str );


The function atof() converts str into a double, then returns that value. str
must start with a valid number, but can be terminated with any non-numerical
character, other than “E” or “e”. For example,</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/atoi?rev=1234997467&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-02-18T14:51:07-07:00</dc:date>
        <title>atoi</title>
        <link>http://www.cppreference.com/wiki/c/string/atoi?rev=1234997467&amp;do=diff</link>
        <description>atoi

Syntax:

    #include &lt;cstdlib&gt;
    int atoi( const char *str );

The atoi function converts str into an integer, and returns that integer. str
should start with whitespace or some sort of number, and atoi will stop
reading from str as soon as a non-numerical character has been read. For
example:</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/atol?rev=1228611225&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-12-06T16:53:45-07:00</dc:date>
        <title>atol</title>
        <link>http://www.cppreference.com/wiki/c/string/atol?rev=1228611225&amp;do=diff</link>
        <description>atol

Syntax:

    #include &lt;cstdlib&gt;
    long atol( const char *str );


The function atol() converts str into a long, then returns that value. atol()
will read from str until it finds any character that should not be in a long.
The resulting truncated value is then converted and returned. For example,</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/isalnum?rev=1237767527&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-22T17:18:47-07:00</dc:date>
        <title>isalnum</title>
        <link>http://www.cppreference.com/wiki/c/string/isalnum?rev=1237767527&amp;do=diff</link>
        <description>isalnum

Syntax:

    #include &lt;cctype&gt;
    int isalnum( int ch );


The function isalnum() returns non-zero if its argument is a numeric digit or a
letter of the alphabet. Otherwise, zero is returned.

     char c;
     scanf( &quot;%c&quot;, &amp;c );
     if( isalnum(c) )
       printf( &quot;You entered the alphanumeric character %c\n&quot;, c );</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/isalpha?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>isalpha</title>
        <link>http://www.cppreference.com/wiki/c/string/isalpha?rev=1224024122&amp;do=diff</link>
        <description>isalpha

Syntax:

    #include &lt;cctype&gt;
    int isalpha( int ch );


The function isalpha() returns non-zero if its argument is a letter of the
alphabet. Otherwise, zero is returned.

     char c;
     scanf( &quot;%c&quot;, &amp;c );
     if( isalpha(c) )
       printf( &quot;You entered a letter of the alphabet\n&quot; );</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/iscntrl?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>iscntrl</title>
        <link>http://www.cppreference.com/wiki/c/string/iscntrl?rev=1224024122&amp;do=diff</link>
        <description>iscntrl

Syntax:

    #include &lt;cctype&gt;
    int iscntrl( int ch );


The iscntrl() function returns non-zero if its argument is a control character
(between 0 and 0x1F or equal to 0x7F). Otherwise, zero is returned.

Related Topics: isalnum, isalpha, isdigit, isgraph, isprint, ispunct, isspace, isxdigit</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/isdigit?rev=1259330027&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-27T05:53:47-07:00</dc:date>
        <title>isdigit</title>
        <link>http://www.cppreference.com/wiki/c/string/isdigit?rev=1259330027&amp;do=diff</link>
        <description>isdigit

Syntax:

    #include &lt;cctype&gt;
    int isdigit( int ch );


The function isdigit() returns non-zero if its argument is a digit between 0
and 9. Otherwise, zero is returned.

     char c;
     scanf( &quot;%c&quot;, &amp;c );
     if( isdigit(c) )
       printf( &quot;You entered the digit %c\n&quot;, c );</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/isgraph?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>isgraph</title>
        <link>http://www.cppreference.com/wiki/c/string/isgraph?rev=1224024122&amp;do=diff</link>
        <description>isgraph

Syntax:

    #include &lt;cctype&gt;
    int isgraph( int ch );


The function isgraph() returns non-zero if its argument is any printable
character other than a space (if you can see the character, then isgraph() will
return a non-zero value). Otherwise, zero is returned.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/islower?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>islower</title>
        <link>http://www.cppreference.com/wiki/c/string/islower?rev=1224024122&amp;do=diff</link>
        <description>islower

Syntax:

    #include &lt;cctype&gt;
    int islower( int ch );


The islower() function returns non-zero if its argument is a lowercase letter.
Otherwise, zero is returned.

Related Topics: isupper</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/isprint?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>isprint</title>
        <link>http://www.cppreference.com/wiki/c/string/isprint?rev=1224024122&amp;do=diff</link>
        <description>isprint

Syntax:

    #include &lt;cctype&gt;
    int isprint( int ch );


The function isprint() returns non-zero if its argument is a printable
character (including a space). Otherwise, zero is returned.

Related Topics: isalnum, isalpha, iscntrl, isdigit, isgraph, ispunct, isspace</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/ispunct?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>ispunct</title>
        <link>http://www.cppreference.com/wiki/c/string/ispunct?rev=1224024122&amp;do=diff</link>
        <description>ispunct

Syntax:

    #include &lt;cctype&gt;
    int ispunct( int ch );


The ispunct() function returns non-zero if its argument is a printing character
but neither alphanumeric nor a space. Otherwise, zero is returned.

Related Topics: isalnum, isalpha, iscntrl, isdigit, isgraph, isprint, isspace, isxdigit</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/isspace?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>isspace</title>
        <link>http://www.cppreference.com/wiki/c/string/isspace?rev=1224024122&amp;do=diff</link>
        <description>isspace

Syntax:

    #include &lt;cctype&gt;
    int isspace( int ch );


The isspace() function returns non-zero if its argument is some sort of space
(i.e. single space, tab, vertical tab, form feed, carriage return, or newline).
Otherwise, zero is returned.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/isupper?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>isupper</title>
        <link>http://www.cppreference.com/wiki/c/string/isupper?rev=1224024122&amp;do=diff</link>
        <description>isupper

Syntax:

    #include &lt;cctype&gt;
    int isupper( int ch );


The isupper() function returns non-zero if its argument is an uppercase letter.
Otherwise, zero is returned.

Related Topics: islower, tolower</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/isxdigit?rev=1244562380&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-06-09T08:46:20-07:00</dc:date>
        <title>isxdigit</title>
        <link>http://www.cppreference.com/wiki/c/string/isxdigit?rev=1244562380&amp;do=diff</link>
        <description>isxdigit

Syntax:

    #include &lt;cctype&gt;
    int isxdigit( int ch );


The function isxdigit() returns non-zero if its argument is a hexadecimal digit
(i.e. A-F, a-f, or 0-9). Otherwise, zero is returned.

Related Topics: isalnum, isalpha, iscntrl, isdigit, isgraph, ispunct, isspace</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/memchr?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>memchr</title>
        <link>http://www.cppreference.com/wiki/c/string/memchr?rev=1224024122&amp;do=diff</link>
        <description>memchr

Syntax:

    #include &lt;cstring&gt;
    void *memchr( const void *buffer, int ch, size_t count );


The memchr() function looks for the first occurrence of ch within count
characters in the array pointed to by buffer. The return value points to the
location of the first occurrence of ch, or NULL if ch isn't found. For example:</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/memcmp?rev=1221697720&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-09-17T17:28:40-07:00</dc:date>
        <title>memcmp</title>
        <link>http://www.cppreference.com/wiki/c/string/memcmp?rev=1221697720&amp;do=diff</link>
        <description>memcmp

Syntax:

    #include &lt;cstring&gt;
    int memcmp( const void *buffer1, const void *buffer2, size_t count );


The function memcmp() compares the first count characters of buffer1 and
buffer2. The return values are as follows:

Value          Explanationless than 0    buffer1 is less than buffer2equal to 0     buffer1 is equal to buffer2greater than 0 buffer1 is greater than buffer2
Related Topics: memchr, memcpy, memset, strcmp</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/memcpy?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>memcpy</title>
        <link>http://www.cppreference.com/wiki/c/string/memcpy?rev=1224024122&amp;do=diff</link>
        <description>memcpy

Syntax:

    #include &lt;cstring&gt;
    void *memcpy( void *to, const void *from, size_t count );

The function memcpy() copies count characters from the array from to the array to. 

The return value of memcpy() is to. 

The behavior of memcpy() is undefined if to and from overlap.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/memmove?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>memmove</title>
        <link>http://www.cppreference.com/wiki/c/string/memmove?rev=1224024122&amp;do=diff</link>
        <description>memmove

Syntax:

    #include &lt;cstring&gt;
    void *memmove( void *to, const void *from, size_t count );


The memmove() function is identical to memcpy(), except that it works even if
to and from overlap.

Related Topics: memcpy, memset</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/memset?rev=1253027018&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-09-15T08:03:38-07:00</dc:date>
        <title>memset</title>
        <link>http://www.cppreference.com/wiki/c/string/memset?rev=1253027018&amp;do=diff</link>
        <description>memset

Syntax:

    #include &lt;cstring&gt;
    void* memset( void* buffer, int ch, size_t count );

The function memset copies ch into the first count characters of buffer, and
returns buffer. memset is useful for intializing a section of memory to some
value. For example, this command:</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/start?rev=1276799233&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-06-17T11:27:13-07:00</dc:date>
        <title>Standard C String and Character</title>
        <link>http://www.cppreference.com/wiki/c/string/start?rev=1276799233&amp;do=diff</link>
        <description>atofconverts a string to a doubleatoiconverts a string to an integeratolconverts a string to a longisalnumtrue iff a character is alphanumericisalphatrue iff a character is alphabeticiscntrltrue iff a character is a control characterisdigittrue iff a character is a digitisgraphtrue iff a character is a graphical characterislowertrue iff a character is lowercaseisprinttrue iff a character is a printing characterispuncttrue iff a character is punctuationisspacetrue iff a character is a space chara…</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strcat?rev=1239041580&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-04-06T11:13:00-07:00</dc:date>
        <title>strcat</title>
        <link>http://www.cppreference.com/wiki/c/string/strcat?rev=1239041580&amp;do=diff</link>
        <description>strcat

Syntax:

    #include &lt;cstring&gt;
    char *strcat( char *str1, const char *str2 );

The strcat function concatenates str2 onto the end of str1, and returns str1.
For example:

     printf( &quot;Enter your name: &quot; );
     scanf( &quot;%s&quot;, name );
     title = strcat( name, &quot; the Great&quot; );
     printf( &quot;Hello, %s\n&quot;, title );</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strchr?rev=1280874296&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-03T15:24:56-07:00</dc:date>
        <title>strchr</title>
        <link>http://www.cppreference.com/wiki/c/string/strchr?rev=1280874296&amp;do=diff</link>
        <description>strchr

Syntax:

    #include &lt;cstring&gt;
    char *strchr( const char *str, int ch );


The function strchr() returns a pointer to the first occurence of ch in str, or
NULL if ch is not found.

Related Topics: strcat, strcmp, strcpy, strlen, strncat, strncmp, strncpy, strpbrk, strspn, strstr, strtok</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strcmp?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>strcmp</title>
        <link>http://www.cppreference.com/wiki/c/string/strcmp?rev=1224024122&amp;do=diff</link>
        <description>strcmp

Syntax:

    #include &lt;cstring&gt;
    int strcmp( const char *str1, const char *str2 );


The function strcmp() compares str1 and str2, then returns:

Return value   Explanationless than 0    str1 is less than str2equal to 0     str1 is equal to str2greater than 0 str1 is greater than str2

For example:</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strcoll?rev=1229712780&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-12-19T10:53:00-07:00</dc:date>
        <title>strcoll</title>
        <link>http://www.cppreference.com/wiki/c/string/strcoll?rev=1229712780&amp;do=diff</link>
        <description>strcoll

Syntax:

    #include &lt;cstring&gt;
    int strcoll( const char *str1, const char *str2 );

The strcoll function compares str1 and str2, much like strcmp.  However,
strcoll performs the comparison using the locale specified by the setlocale function.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strcpy?rev=1280873689&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-03T15:14:49-07:00</dc:date>
        <title>strcpy</title>
        <link>http://www.cppreference.com/wiki/c/string/strcpy?rev=1280873689&amp;do=diff</link>
        <description>strcpy

Syntax:

    #include &lt;cstring&gt;
    char *strcpy( char *dest, const char *src );


The strcpy() function copies characters in the string src to the string dest,
including the null termination. The return value is dest.
Note that strcpy() does not perform bounds checking, and thus risks overrunning
from or to. For a similar (and safer) function that includes bounds checking,
see strncpy().</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strcspn?rev=1224024123&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:03-07:00</dc:date>
        <title>strcspn</title>
        <link>http://www.cppreference.com/wiki/c/string/strcspn?rev=1224024123&amp;do=diff</link>
        <description>strcspn

Syntax:

    #include &lt;cstring&gt;
    size_t strcspn( const char *str1, const char *str2 );


The function strcspn() returns the index of the first character in str1 that
matches any of the characters in str2.

Related Topics: strpbrk, strrchr, strstr, strtok</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strerror?rev=1251944255&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-09-02T19:17:35-07:00</dc:date>
        <title>strerror</title>
        <link>http://www.cppreference.com/wiki/c/string/strerror?rev=1251944255&amp;do=diff</link>
        <description>strerror

Syntax:

    #include &lt;cstring&gt;
    const char *strerror( int num );

The function strerror() returns an implementation defined string corresponding
to num.

Related Topics: perror</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strlcat?rev=1233158758&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-28T08:05:58-07:00</dc:date>
        <title>strlcat</title>
        <link>http://www.cppreference.com/wiki/c/string/strlcat?rev=1233158758&amp;do=diff</link>
        <description>strlcat

Warning: Non-standard function!

Syntax:

    #include &lt;string.h&gt;  // On BSD or compatible systems
    size_t strlcat( char *dst, const char *src, size_t siz);

An attempt of the BSD people to “fix” strncat.  There is a reason this function is not in any ISO standard.  It is not a clear improvement over strncat, but rather an “overload” with different tradeoffs.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strlcpy?rev=1282117679&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-18T00:47:59-07:00</dc:date>
        <title>strlcpy</title>
        <link>http://www.cppreference.com/wiki/c/string/strlcpy?rev=1282117679&amp;do=diff</link>
        <description>strlcpy

Warning: Non-standard function!

Syntax:

    #include &lt;string.h&gt;  // On BSD or compatible systems
    size_t strlcpy( char *dst, const char *src, size_t siz);

An attempt of the BSD people to “fix” strncpy.  There is a reason this function is not in any ISO standard.  See explanation after the description.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strlen?rev=1242897649&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-05-21T02:20:49-07:00</dc:date>
        <title>strlen</title>
        <link>http://www.cppreference.com/wiki/c/string/strlen?rev=1242897649&amp;do=diff</link>
        <description>strlen

Syntax:

    #include &lt;cstring&gt;
    size_t strlen( char *str );


The strlen() function returns the length of str (determined by the number of
characters before null termination). Str may not be null.

Related Topics: memcpy, strchr, strcmp, strncmp</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strncat?rev=1233159064&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-28T08:11:04-07:00</dc:date>
        <title>strncat</title>
        <link>http://www.cppreference.com/wiki/c/string/strncat?rev=1233159064&amp;do=diff</link>
        <description>strncat

Syntax:

    #include &lt;cstring&gt;
    char *strncat( char *str1, const char *str2, size_t count );


The function strncat() concatenates at most count characters of str2 onto str1,
adding a null termination. The resulting string is returned.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strncmp?rev=1244546176&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-06-09T04:16:16-07:00</dc:date>
        <title>strncmp</title>
        <link>http://www.cppreference.com/wiki/c/string/strncmp?rev=1244546176&amp;do=diff</link>
        <description>strncmp

Syntax:

    #include &lt;cstring&gt;
    int strncmp( const char *str1, const char *str2, size_t count );


The strncmp() function compares at most count characters of str1 and str2. The
return value is as follows:

Return value   Explanationless than 0    str1 is less than str2equal to 0     str1 is equal to str2greater than 0 str1 is greater than str2

If there are less than count characters in either string, then the comparison
will stop after the first null termination is encountered.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strncpy?rev=1263365629&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-01-12T22:53:49-07:00</dc:date>
        <title>strncpy</title>
        <link>http://www.cppreference.com/wiki/c/string/strncpy?rev=1263365629&amp;do=diff</link>
        <description>strncpy

Syntax:

    #include &lt;cstring&gt;
    char *strncpy( char *to, const char *from, size_t count );
    namespace std {
      using ::strncpy;
   }

The strncpy function copies at most count characters of from to the string
to. If from has less than count characters, the remainder is padded with '\0'
characters. The return value is the resulting string.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strpbrk?rev=1260054859&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-05T15:14:19-07:00</dc:date>
        <title>strpbrk</title>
        <link>http://www.cppreference.com/wiki/c/string/strpbrk?rev=1260054859&amp;do=diff</link>
        <description>strpbrk

Syntax:

    #include &lt;cstring&gt;
    char* strpbrk( const char* str1, const char* str2 );


The function strpbrk() returns a pointer to the first occurrence in str1 of any
character in str2, or NULL if no such characters are present.

Related Topics: (C++ Algorithms) find_first_of, strchr, strcspn, strrchr, strspn, strstr, strtok</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strrchr?rev=1224024123&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:03-07:00</dc:date>
        <title>strrchr</title>
        <link>http://www.cppreference.com/wiki/c/string/strrchr?rev=1224024123&amp;do=diff</link>
        <description>strrchr

Syntax:

    #include &lt;cstring&gt;
    char *strrchr( const char *str, int ch );


The function strrchr() returns a pointer to the last occurrence of ch in str,
or NULL if no match is found.

Related Topics: strcspn, strpbrk, strspn, strstr, strtok</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strspn?rev=1224024123&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:03-07:00</dc:date>
        <title>strspn</title>
        <link>http://www.cppreference.com/wiki/c/string/strspn?rev=1224024123&amp;do=diff</link>
        <description>strspn

Syntax:

    #include &lt;cstring&gt;
    size_t strspn( const char *str1, const char *str2 );


The strspn() function returns the index of the first character in str1 that
doesn't match any character in str2.

Related Topics: strchr, strpbrk, strrchr, strstr, strtok</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strstr?rev=1268054123&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-03-08T05:15:23-07:00</dc:date>
        <title>strstr</title>
        <link>http://www.cppreference.com/wiki/c/string/strstr?rev=1268054123&amp;do=diff</link>
        <description>strstr

Syntax:

    #include &lt;cstring&gt;
    const char *strstr( const char *str1, const char *str2 );
          char *strstr(       char *str1, const char *str2 );

The function strstr returns a pointer to the first occurrence of str2 in
str1, or NULL if no match is found. If the length of str2 is zero, then strstr
 will simply return str1.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strtod?rev=1224024123&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:03-07:00</dc:date>
        <title>strtod</title>
        <link>http://www.cppreference.com/wiki/c/string/strtod?rev=1224024123&amp;do=diff</link>
        <description>strtod

Syntax:

    #include &lt;cstdlib&gt;
    double strtod( const char *start, char **end );


The function strtod() returns whatever it encounters first in start as a
double. end is set to point at whatever is left in start after that double. If
overflow occurs, strtod() returns either HUGE_VAL or -HUGE_VAL.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strtok?rev=1280874609&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-03T15:30:09-07:00</dc:date>
        <title>strtok</title>
        <link>http://www.cppreference.com/wiki/c/string/strtok?rev=1280874609&amp;do=diff</link>
        <description>strtok

Syntax:

    #include &lt;cstring&gt;
    char *strtok( char *str1, const char *str2 );

The strtok function returns a pointer to the next “token” in str1, where str2
contains the delimiters that determine the token. strtok returns NULL if no
token is found.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strtol?rev=1239969828&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-04-17T05:03:48-07:00</dc:date>
        <title>strtol</title>
        <link>http://www.cppreference.com/wiki/c/string/strtol?rev=1239969828&amp;do=diff</link>
        <description>strtol

Syntax:

    #include &lt;cstdlib&gt;
    long strtol( const char *start, char **end, int base );


The strtol() function returns whatever it encounters first in start as a long,
doing the conversion to base if necessary. end is set to point to whatever is
left in start after the long. If the result can not be represented by a long,
then strtol() returns either LONG_MAX or LONG_MIN. Zero is returned upon error.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strtoul?rev=1236045757&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-02T18:02:37-07:00</dc:date>
        <title>strtoul</title>
        <link>http://www.cppreference.com/wiki/c/string/strtoul?rev=1236045757&amp;do=diff</link>
        <description>strtoul

Syntax:

    #include &lt;cstdlib&gt;
    unsigned long strtoul( const char *start, char **end, int base );


The function strtoul() behaves exactly like strtol(), except that it returns an
unsigned long rather than a mere long, and that it returns ULONG_MAX on overflow.</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strtrm?rev=1229159281&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-12-13T01:08:01-07:00</dc:date>
        <title>c:string:strtrm</title>
        <link>http://www.cppreference.com/wiki/c/string/strtrm?rev=1229159281&amp;do=diff</link>
        <description>int lfttrm(char* str)
{
   int len = 0;
   char* tmp;
   
   len = (int)strlen(str);
   if(0 == len) return len;
   
   tmp = str;
   while(len &gt; 0){
        if(0x20 == *tmp){
                tmp++; len--;
        }
        else if(len &gt; 1){
             if((char)0x81 == *tmp &amp;&amp; (char)0x40 == *(tmp+1)){
                  tmp += 2; len -= 2;
             }
             else break;
        }
        else break;
   }    
   strcpy(str, tmp);
   
   return len;
}
int rgttrm(char* str)
{</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/strxfrm?rev=1224024123&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:03-07:00</dc:date>
        <title>strxfrm</title>
        <link>http://www.cppreference.com/wiki/c/string/strxfrm?rev=1224024123&amp;do=diff</link>
        <description>strxfrm

Syntax:

    #include &lt;cstring&gt;
    size_t strxfrm( char *str1, const char *str2, size_t num );


The strxfrm() function manipulates the first num characters of str2 and stores
them in str1. The result is such that if a strcoll() is performed on str1 and
the old str2, you will get the same result as with a strcmp().</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/tolower?rev=1224024123&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:03-07:00</dc:date>
        <title>tolower</title>
        <link>http://www.cppreference.com/wiki/c/string/tolower?rev=1224024123&amp;do=diff</link>
        <description>tolower

Syntax:

    #include &lt;cctype&gt;
    int tolower( int ch );


The function tolower() returns the lowercase version of the character ch.

Related Topics: isupper, toupper</description>
    </item>
    <item rdf:about="http://www.cppreference.com/wiki/c/string/toupper?rev=1262097776&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-29T06:42:56-07:00</dc:date>
        <title>toupper</title>
        <link>http://www.cppreference.com/wiki/c/string/toupper?rev=1262097776&amp;do=diff</link>
        <description>toupper

Syntax:

    #include &lt;cctype&gt;
    int toupper( int ch );

The toupper function returns the uppercase version of the character ch.

Related Topics: tolower</description>
    </item>
</rdf:RDF>
