<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://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://cppreference.com/wiki/feed.php">
        <title>C++ Reference c:other</title>
        <description></description>
        <link>http://cppreference.com/wiki/</link>
        <image rdf:resource="http://cppreference.com/wiki/lib/images/favicon.ico" />
       <dc:date>2010-09-09T09:14:57-07:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/abort?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/assert?rev=1265204077&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/atexit?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/bsearch?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/exit?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/getenv?rev=1239541107&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/longjmp?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/putenv?rev=1239541083&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/qsort?rev=1267623046&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/raise?rev=1227996573&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/rand?rev=1283045938&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/setjmp?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/signal?rev=1269444702&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/srand?rev=1252867711&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/start?rev=1240228474&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/system?rev=1224024122&amp;do=diff"/>
                <rdf:li rdf:resource="http://cppreference.com/wiki/c/other/va_arg?rev=1243315420&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://cppreference.com/wiki/lib/images/favicon.ico">
        <title>C++ Reference</title>
        <link>http://cppreference.com/wiki/</link>
        <url>http://cppreference.com/wiki/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://cppreference.com/wiki/c/other/abort?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>abort</title>
        <link>http://cppreference.com/wiki/c/other/abort?rev=1224024122&amp;do=diff</link>
        <description>abort

Syntax:

    #include &lt;cstdlib&gt;
    void abort( void );


The function abort() terminates the current program. Depending on the
implementation, the return value can indicate failure.

Related Topics: assert, atexit, exit</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/assert?rev=1265204077&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-02-03T05:34:37-07:00</dc:date>
        <title>assert</title>
        <link>http://cppreference.com/wiki/c/other/assert?rev=1265204077&amp;do=diff</link>
        <description>assert

Syntax:

    #include &lt;cassert&gt;
    assert( exp );


The assert() macro is used to test for errors. If exp evaluates to zero, assert
() writes information to stderr and exits the program. If the macro NDEBUG is
defined, the assert() macros will be ignored.</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/atexit?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>atexit</title>
        <link>http://cppreference.com/wiki/c/other/atexit?rev=1224024122&amp;do=diff</link>
        <description>atexit

Syntax:

    #include &lt;cstdlib&gt;
    int atexit( void (*func)(void) );


The function atexit() causes the function pointed to by func to be called when
the program terminates. You can make multiple calls to atexit() (at least 32,
depending on your compiler) and those functions will be called in reverse order
of their establishment. The return value of atexit() is zero upon success, and
non-zero on failure.</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/bsearch?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>bsearch</title>
        <link>http://cppreference.com/wiki/c/other/bsearch?rev=1224024122&amp;do=diff</link>
        <description>bsearch

Syntax:

    #include &lt;cstdlib&gt;
    void *bsearch( const void *key, const void *buf, size_t num, size_t size,
  int (*compare)(const void *, const void *) );


The bsearch() function searches buf[0] to buf[num-1] for an item that matches
key, using a binary search. The function compare should return negative if its
first argument is less than its second, zero if equal, and positive if greater.
The items in the array buf should be in ascending order. The return value of
bsearch() is a po…</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/exit?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>exit</title>
        <link>http://cppreference.com/wiki/c/other/exit?rev=1224024122&amp;do=diff</link>
        <description>exit

Syntax:

    #include &lt;cstdlib&gt;
    void exit( int exit_code );


The exit() function stops the program. exit_code is passed on to be the return
value of the program, where usually zero indicates success and non-zero
indicates an error.

Related Topics: abort, atexit, system</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/getenv?rev=1239541107&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-04-12T05:58:27-07:00</dc:date>
        <title>getenv</title>
        <link>http://cppreference.com/wiki/c/other/getenv?rev=1239541107&amp;do=diff</link>
        <description>getenv

Syntax:

    #include &lt;cstdlib&gt;
    char *getenv( const char *name );


The function getenv() returns environmental information associated with name,
and is very implementation dependent. NULL is returned if no information about
name is available.</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/longjmp?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>longjmp</title>
        <link>http://cppreference.com/wiki/c/other/longjmp?rev=1224024122&amp;do=diff</link>
        <description>longjmp

Syntax:

    #include &lt;csetjmp&gt;
    void longjmp( jmp_buf envbuf, int status );


The function longjmp() causes the program to start executing code at the point
of the last call to setjmp(). envbuf is usually set through a call to setjmp().
status becomes the return value of setjmp() and can be used to figure out where
longjmp() came from. status should not be set to zero.</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/putenv?rev=1239541083&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-04-12T05:58:03-07:00</dc:date>
        <title>putenv</title>
        <link>http://cppreference.com/wiki/c/other/putenv?rev=1239541083&amp;do=diff</link>
        <description>putenv

Syntax:

    #include &lt;cstdlib&gt;
    int putenv( const char *envstring );


The function putenv() creates, modifies or removes enviroment variables. On success return is 0; on failure it is -1.

Related Topics: system,getenv</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/qsort?rev=1267623046&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-03-03T05:30:46-07:00</dc:date>
        <title>qsort</title>
        <link>http://cppreference.com/wiki/c/other/qsort?rev=1267623046&amp;do=diff</link>
        <description>qsort

Syntax:

    #include &lt;cstdlib&gt;
    void qsort( void *buf, size_t num, size_t size, int (*compare)(const void*, const void *) );

The qsort function sorts buf (which contains num items, each of size size)
using Quicksort. The compare function is used to compare the items in buf, 
and should return negative if the first argument is less than the second,
zero if they are equal, and positive if the first argument is greater than the
second. qsort() sorts buf in ascending order.</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/raise?rev=1227996573&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-11-29T14:09:33-07:00</dc:date>
        <title>raise</title>
        <link>http://cppreference.com/wiki/c/other/raise?rev=1227996573&amp;do=diff</link>
        <description>raise

Syntax:

    #include &lt;csignal&gt;
    int raise( int signal );

The raise() function sends the specified signal to the program. Some signals:

SignalMeaningSIGABRT Termination errorSIGFPE  Floating pointer errorSIGILL  Bad instructionSIGINT  User pressed CTRL-CSIGSEGV Illegal memory accessSIGTERM Terminate program

The return value is zero upon success, nonzero on failure.</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/rand?rev=1283045938&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-28T18:38:58-07:00</dc:date>
        <title>rand</title>
        <link>http://cppreference.com/wiki/c/other/rand?rev=1283045938&amp;do=diff</link>
        <description>rand

Syntax:

    #include &lt;cstdlib&gt;
    int rand( void );


The function rand() returns a pseudorandom integer between zero and RAND_MAX.
An example:

     srand( time(NULL) );
     for( i = 0; i &lt; 10; i++ )
       printf( &quot;Random number #%d: %d\n&quot;, i, rand() );</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/setjmp?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>setjmp</title>
        <link>http://cppreference.com/wiki/c/other/setjmp?rev=1224024122&amp;do=diff</link>
        <description>setjmp

Syntax:

    #include &lt;csetjmp&gt;
    int setjmp( jmp_buf envbuf );


The setjmp() function saves the system stack in envbuf for use by a later call
to longjmp(). When you first call setjmp(), its return value is zero. Later,
when you call longjmp(), the second argument of longjmp() is what the return
value of setjmp() will be. Confused? Read about longjmp().</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/signal?rev=1269444702&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-03-24T08:31:42-07:00</dc:date>
        <title>signal</title>
        <link>http://cppreference.com/wiki/c/other/signal?rev=1269444702&amp;do=diff</link>
        <description>signal

Syntax:

    #include &lt;csignal&gt;
    void ( *signal( int signal, void (* func) (int)) ) (int);

The signal() function sets func to be called when signal is received by your
program. func can be a custom signal handler, or one of these macros (defined
in the csignal header file):</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/srand?rev=1252867711&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-09-13T11:48:31-07:00</dc:date>
        <title>srand</title>
        <link>http://cppreference.com/wiki/c/other/srand?rev=1252867711&amp;do=diff</link>
        <description>srand

Syntax:

    #include &lt;cstdlib&gt;
    void srand( unsigned seed );


The function srand() is used to seed the random sequence generated by rand().
For any given seed, rand() will generate a specific “random” sequence over and
over again.

     srand( time(NULL) );
     for( i = 0; i &lt; 10; i++ )
       printf( &quot;Random number #%d: %d\n&quot;, i, rand() );</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/start?rev=1240228474&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-04-20T04:54:34-07:00</dc:date>
        <title>Other Standard C Functions</title>
        <link>http://cppreference.com/wiki/c/other/start?rev=1240228474&amp;do=diff</link>
        <description>abortstops the programassertstops the program if an expression isn't trueatexitsets a function to be called when the program exitsbsearchperform a binary searchexitstop the programgetenvget environnment information about a variablelongjmpstart execution at a certain point in the programputenvadd/modify the environmental settingsqsortperform a quicksortraisesend a signal to the programrandreturns a pseudorandom numbersetjmpset execution to start at a certain pointsignalregister a function as a si…</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/system?rev=1224024122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-14T15:42:02-07:00</dc:date>
        <title>system</title>
        <link>http://cppreference.com/wiki/c/other/system?rev=1224024122&amp;do=diff</link>
        <description>system

Syntax:

    #include &lt;cstdlib&gt;
    int system( const char *command );


The system() function runs the given command by passing it to the default
command interpreter.
The return value is usually zero if the command executed without errors. If
command is NULL, system() will test to see if there is a command interpreter
available. Non-zero will be returned if there is a command interpreter
available, zero if not.</description>
    </item>
    <item rdf:about="http://cppreference.com/wiki/c/other/va_arg?rev=1243315420&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-05-25T22:23:40-07:00</dc:date>
        <title>va_arg</title>
        <link>http://cppreference.com/wiki/c/other/va_arg?rev=1243315420&amp;do=diff</link>
        <description>va_arg

Syntax:

    #include &lt;cstdarg&gt;
    type va_arg( va_list argptr, type );
    void va_end( va_list argptr );
    void va_start( va_list argptr, last_parm );

The va_arg() macros are used to pass a variable number of arguments to a
function.</description>
    </item>
</rdf:RDF>
