<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://code-reference.com/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="https://code-reference.com/feed.php">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <description></description>
        <link>https://code-reference.com/</link>
        <image rdf:resource="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-18T20:58:32+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printwriter?rev=1708041840&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fdopen?rev=1361800230&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h?rev=1708040903&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/quick_reference?rev=1449750950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fseek?rev=1708041941&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fgetpos?rev=1361069952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/keywords/file?rev=1708041959&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/examples/uiwebview_using_local_resources?rev=1408407926&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/remove?rev=1708041944&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fclose?rev=1708041942&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fsetpos?rev=1708041944&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fopen?rev=1430730823&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/rename?rev=1708041942&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/rewind?rev=1708041944&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/examples/smbscan?rev=1357809303&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/vfprintf?rev=1708041943&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/ferror?rev=1374831141&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/feof?rev=1708041940&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/fstream?rev=1371142091&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/freopen?rev=1708041945&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/getc?rev=1708041942&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/examples/mysql_bruteforce?rev=1708041925&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/examples/iisscan?rev=1357809369&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fgetc?rev=1417696073&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/fgetwc?rev=1708041932&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fflush?rev=1708041940&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fgets?rev=1708041940&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/file?rev=1708041940&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fputc?rev=1708041941&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/putc?rev=1708041941&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fwrite?rev=1708041942&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/ftell?rev=1708041940&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/tmpfile?rev=1708041940&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fscanf?rev=1708041942&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/ungetc?rev=1708041943&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/how_to/tests?rev=1533268704&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/graphresult?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/setbuf?rev=1708041941&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fputs?rev=1357591171&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/installuserfont?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/string.h/strtok?rev=1361639445&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/write?rev=1378710442&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fread?rev=1708041943&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fpos_t?rev=1708041944&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/fgetws?rev=1708041934&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/writeimagefile?rev=1430946537&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/clearerr?rev=1708041944&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/setvbuf?rev=1708041944&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/registerbgidriver?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/readimagefile?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fputchar?rev=1708041943&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c?rev=1515738548&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/case?rev=1708040895&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/fputws?rev=1708041933&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/perror?rev=1708041943&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/gets?rev=1708041941&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/control_structures/if?rev=1708041872&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/vfscanf?rev=1361805756&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_info?rev=1361892865&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fprintf?rev=1708041941&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/registerbgifont?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/initgraph?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/fputwc?rev=1708041933&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/tmpnam?rev=1708041939&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/vfwprintf?rev=1708041927&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/preprocessor/include?rev=1708041967&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/sscanf?rev=1708041941&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/examples/talk_to_a_modem?rev=1708041925&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/examples/hostscanner?rev=1708041925&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/settextstyle?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/fwide?rev=1708041927&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h/defaultmanager?rev=1708042342&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h?rev=1708041981&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/getwc?rev=1708041928&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/fwprintf?rev=1708041934&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/ungetwc?rev=1708041932&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/clearmouseclick?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner?rev=1369672518&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/ismouseclick?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp?rev=1392840081&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/fwscanf?rev=1708041927&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/vfwscanf?rev=1708041934&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmouseclick?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/keywords/stdout?rev=1358093495&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java?rev=1515738548&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h?rev=1708040902&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/putwc?rev=1708041928&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/examples/fonts?rev=1708041979&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/examples/ftp_scanner?rev=1708041925&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico">
        <title>Programming | Library | Reference - Code-Reference.com</title>
        <link>https://code-reference.com/</link>
        <url>https://code-reference.com/ttps://code-reference.com/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://code-reference.com/java/io/printwriter?rev=1708041840&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:00+02:00</dc:date>
        <title>Print Writer</title>
        <link>https://code-reference.com/java/io/printwriter?rev=1708041840&amp;do=diff</link>
        <description>----------

The PrintWriter class is a simple way of writing to files in Java io. It can be used in many ways and offers a great deal of methods inside the class. Some of these are quite common methods throughout the language itself. I will go through them step by step, giving examples for each. Let's get started:</description>
    </item>
    <item rdf:about="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-07-31T22:37:05+02:00</dc:date>
        <title>Formatting Syntax</title>
        <link>https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff</link>
        <description>DokuWiki supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the Edit this page button at the top or bottom of the page. If you want to try something, just use the playground page. The simpler markup is easily accessible via quickbuttons, too.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fdopen?rev=1361800230&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-25T14:50:30+02:00</dc:date>
        <title>fdopen</title>
        <link>https://code-reference.com/c/stdio.h/fdopen?rev=1361800230&amp;do=diff</link>
        <description>#include &lt;stdio.h&gt; /* including standard library */
FILE *fdopen(int fildes, const char *mode);


description of fdopen

fdopen() is the counterpart to fileno(). As a mode, such as the file is opened, the same modes as the can open() can be used.

fdopen() is often applied to file descriptors that are returned from functions that set up the pipes or channels of communication in networks. This is because some functions like open(), dup(), dup2(), fcntl(), pipe(), ... in networks can not do anythi…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h?rev=1708040903&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T00:48:23+02:00</dc:date>
        <title>stdio.h</title>
        <link>https://code-reference.com/c/stdio.h?rev=1708040903&amp;do=diff</link>
        <description>Function                 Description                 BUFSIZ  (integer value) size of the buffer     clearerr      Clears end-of-file and error indicators for a stream    fclose        Close the current stream / file    feof          Checks for the end-of-file    ferror        Checks for a stream error    fflush        Synchronises an output stream with the actual file    fgetc         Reads a byte/char from a file stream    fgetpos       Gets the stream position indicator    fgets         Reads …</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/quick_reference?rev=1449750950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-12-10T13:35:50+02:00</dc:date>
        <title>Bash quick reference</title>
        <link>https://code-reference.com/bash/quick_reference?rev=1449750950&amp;do=diff</link>
        <description>Bash quick reference
Command	Description	Example     &amp;	Run the previous command in the background	ls &amp; &amp;&amp;	Logical AND	if [ “$foo” -ge “0” ] &amp;&amp; [ “$foo” -le “9”] ||	Logical OR	if [ “$foo” -lt “0” ] || [ “$foo” -gt “9” ] (not in Bourne shell) ^	Start of line	grep ”^foo” $	End of line	grep “foo$” =	String equality (cf. -eq) if [ “$foo” = “bar” ] !	Logical NOT	if [ “$foo” != “bar” ] $$	PID of current shell	echo “my PID = $$” $!	PID of last background command	ls &amp; echo “PID of ls = $!” $?	exit status…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fseek?rev=1708041941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:41+02:00</dc:date>
        <title>fseek</title>
        <link>https://code-reference.com/c/stdio.h/fseek?rev=1708041941&amp;do=diff</link>
        <description>int fseek(FILE *stream, long int offset, int origin);


Sets file position for stream stream and clears end-of-file indicator. For a binary stream, file position is set to offset bytes from the position indicated by origin: beginning of file for SEEK_SET, current position for SEEK_CUR, or end of file for SEEK_END. Behaviour is similar for a text stream, but offset must be zero or, for SEEK_SET only, a value returned by ftell. Returns non-zero on error.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fgetpos?rev=1361069952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-17T03:59:12+02:00</dc:date>
        <title>fgetpos</title>
        <link>https://code-reference.com/c/stdio.h/fgetpos?rev=1361069952&amp;do=diff</link>
        <description>int fgetpos(FILE *stream, fpos_t *pos);


Stores current file position for stream stream in *pos. Returns non-zero on error.

Description

The fgetpos() function stores the file position indicator of the given file stream in the given position variable.

The position variable is of type fpos_t (which is defined in stdio.h) and is an object that can hold every possible position in a FILE.

fgetpos() returns zero upon success, and a non-zero value upon failure.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/keywords/file?rev=1708041959&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:59+02:00</dc:date>
        <title>FILE</title>
        <link>https://code-reference.com/c/keywords/file?rev=1708041959&amp;do=diff</link>
        <description>FILE
 FILE Pointer (stream)
 shows on a given file
 
 The data type FILE is a structure that contains information about a file
 or specified data stream. It includes such information as a file descriptor,
 current position, status flags, and more. It is most often used as a pointer
 to a file type, as file I/O functions predominantly take pointers as
 parameters, not the structures themselves (see example below).
C Sourcecode Example


#include &lt;stdio.h&gt; /* including standard library */
//#inclu…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/examples/uiwebview_using_local_resources?rev=1408407926&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-08-19T02:25:26+02:00</dc:date>
        <title>UIWebView using local resources</title>
        <link>https://code-reference.com/objective-c/examples/uiwebview_using_local_resources?rev=1408407926&amp;do=diff</link>
        <description>Sometimes you need or want to load a UIWebView displaying content provided with an app. If there is more then one site it might make sense to have an external .css or .js file for all your html content. Whatever, I was facing this problem currently and decided to provide my solution to you.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/remove?rev=1708041944&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:44+02:00</dc:date>
        <title>remove</title>
        <link>https://code-reference.com/c/stdio.h/remove?rev=1708041944&amp;do=diff</link>
        <description>int remove(const char *filename);


Removes specified file. Returns non-zero on failure.

Example Source


/* 
 * remove example code
 * http://code-reference.com/c/stdio.h/remove
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#define FILENAME &quot;test_tmp.txt&quot;

int main ( void )
{
FILE *tmpfile;
char string[20];
tmpfile = fopen(FILENAME, &quot;w&quot;);

if (tmpfile == 0 ) {
perror(&quot;cannot open file&quot;);
}

 fprintf (tmpfile, &quot;temporary file f…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fclose?rev=1708041942&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:42+02:00</dc:date>
        <title>fclose</title>
        <link>https://code-reference.com/c/stdio.h/fclose?rev=1708041942&amp;do=diff</link>
        <description>fclose


#include &lt;stdio.h&gt; /* including standard library */

    int fclose( FILE *stream );


Description

Close the current stream / file

Used to close the specified file (stream). You should always use this function, to clean up after using a file. 

Any data that has been written to the file, but not actually made it that far yet, i.e. which has only been written to the file buffer in memory, 

will then be actually written to the physical file itself by the operating system. 

The space i…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fsetpos?rev=1708041944&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:44+02:00</dc:date>
        <title>fsetpos</title>
        <link>https://code-reference.com/c/stdio.h/fsetpos?rev=1708041944&amp;do=diff</link>
        <description>int fsetpos(FILE *stream, const fpos_t *pos); 


reset the position indicator to  using fsetpos()
stores the current file position indicator to the location indicated by the information in pos
Returns non-zero on error.

C Sourcecode Example


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main( void )
{
    FILE *stream;
    fpos_t file_pos;
    int c;
    int i;

    if((stream=fopen(&quot;test.txt&quot;,&quot;r&quot;))==NULL) {
        printf(&quot;Ca…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fopen?rev=1430730823&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-05-04T11:13:43+02:00</dc:date>
        <title>fopen</title>
        <link>https://code-reference.com/c/stdio.h/fopen?rev=1430730823&amp;do=diff</link>
        <description>#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

FILE * fopen (const char * restrict path, const char * restrict mode)


Opens file named restrict path and returns a stream, or NULL on failure. mode may be one of the following for files or one of those strings with b included (after the first character), for binary files.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/rename?rev=1708041942&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:42+02:00</dc:date>
        <title>rename</title>
        <link>https://code-reference.com/c/stdio.h/rename?rev=1708041942&amp;do=diff</link>
        <description>int rename(const char *old_filename, const char *new_filename);



Changes name of file oldname to newname. Returns non-zero on failure.

Example Source


/* 
 * rename example code
 * http://code-reference.com/c/stdio.h/rename 
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#define FILENAME &quot;test_tmp.txt&quot;

int main ( void )
{
FILE *tmpfile;
char string[20];
tmpfile = fopen(FILENAME, &quot;w&quot;);

if (tmpfile == 0 ) {
perror(&quot;cannot ope…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/rewind?rev=1708041944&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:44+02:00</dc:date>
        <title>rewind</title>
        <link>https://code-reference.com/c/stdio.h/rewind?rev=1708041944&amp;do=diff</link>
        <description>rewind


    void rewind(FILE *stream);


equal like fseek(stream, 0L, SEEK_SET); clearerr(stream);
Resets the read pointer to the beginning of the File and clear the error
indicator

C Sourcecode Example


/* 
 * rewind example code
 * http://code-reference.com/c/stdio.h/rewind 
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main (void) {
FILE *stream;
int c;
long seek_position;

seek_position = 21;

stream=fopen(&quot;test.txt&quot;…</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/examples/smbscan?rev=1357809303&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-10T10:15:03+02:00</dc:date>
        <title>smbscan.sh</title>
        <link>https://code-reference.com/bash/examples/smbscan?rev=1357809303&amp;do=diff</link>
        <description>Requirements

smbmount, smbclient,nmblookup (samba tools)

nmap (Network Mapper)

grep, sed, dialog


 a smb scanner written in shell by me 



#!/bin/bash
# This script scans smb servers a given network
# and mounts anonymous shared directories
# example: ./smbscan.sh or ./smbscan iprange
# http://www.code-reference.com/ 

# clean old temp files
#rm -f *.out

if [ `id -u` -ne 0 ]; then
  echo &quot;You must be root to use this script.&quot;
  exit 1
fi

FILESYSTEM=cifs
SMBM=/usr/bin/smbmount
SMBC=/usr/bi…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/vfprintf?rev=1708041943&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:43+02:00</dc:date>
        <title>vfprintf</title>
        <link>https://code-reference.com/c/stdio.h/vfprintf?rev=1708041943&amp;do=diff</link>
        <description>int vfprintf(FILE *stream, const char *format, va_list arg);


Equivalent to fprintf with variable argument list replaced by arg, which must have been initialised by the va_start macro (and may have been used in calls to va_arg).

C Sourcecode Example


/* 
 * vfprintf example code
 * http://code-reference.com/c/stdio.h/vfprintf 
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#include &lt;stdarg.h&gt;

int myfprintf( FILE *file, char c…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/ferror?rev=1374831141&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-07-26T11:32:21+02:00</dc:date>
        <title>ferror</title>
        <link>https://code-reference.com/c/stdio.h/ferror?rev=1374831141&amp;do=diff</link>
        <description>ferror


    int ferror(FILE *stream);


the function ferror tests the error indicator for the stream pointed to by stream, returning non-zero if it is set. The error indicator can only be reset by the clearerr function.
Returns non-zero if error indicator is set for stream stream.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/feof?rev=1708041940&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:40+02:00</dc:date>
        <title>feof</title>
        <link>https://code-reference.com/c/stdio.h/feof?rev=1708041940&amp;do=diff</link>
        <description>int feof(FILE *stream);


checks that are applied to a stream or data or the end-of-file indicator is set.

Used to determine if the end of the file (stream) specified, has been reached. When a file is being read sequentially one line, or one piece of data at a time (by means of a loop, say), this is the function you check every iteration, to see if the end of the file has come.

Returns non-zero if end-of-file indicator is set for stream stream.</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/fstream?rev=1371142091&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-06-13T18:48:11+02:00</dc:date>
        <title>fstream</title>
        <link>https://code-reference.com/cpp/fstream?rev=1371142091&amp;do=diff</link>
        <description>fstream

fstream is used for opening/writing to files in c++. Here is an example


#include &lt;fstream&gt;

int main() {

    //create file
    ofstream file; // part of the fstream class

    // write to a file    
    file.write(&quot;hello world!&quot;);
    
    // close file
    file.close();

}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/freopen?rev=1708041945&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:45+02:00</dc:date>
        <title>freopen</title>
        <link>https://code-reference.com/c/stdio.h/freopen?rev=1708041945&amp;do=diff</link>
        <description>#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

    FILE *freopen( const char *fname, const char *mode, FILE *stream );


closes file associated with stream, then opens file filename with specified mode and associates it with stream. Returns stream or NULL on error.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/getc?rev=1708041942&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:42+02:00</dc:date>
        <title>getc</title>
        <link>https://code-reference.com/c/stdio.h/getc?rev=1708041942&amp;do=diff</link>
        <description>getc


    int getc(FILE *stream);


Returns next character from (input) stream stream, or EOF on end-of-file or error.

C Sourcecode Example


/* 
 * getc example code
 * http://code-reference.com/c/stdio.h/getc
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main( void )
{
    FILE *stream;
    int c;

    if((stream=fopen(&quot;test.txt&quot;,&quot;r&quot;))==NULL) {
        printf(&quot;Cannot open file.\n&quot;);
        return 1;
    }
      
   whi…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/examples/mysql_bruteforce?rev=1708041925&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:25+02:00</dc:date>
        <title>MySQL Bruteforce</title>
        <link>https://code-reference.com/c/examples/mysql_bruteforce?rev=1708041925&amp;do=diff</link>
        <description>MySQL Bruteforce

written while a boring day

more information on &lt;http://code-reference.com&gt;


#include &lt;stdio.h&gt;
#include &lt;mysql/mysql.h&gt;
#include &lt;curses.h&gt;
#include &lt;string.h&gt;
#include &lt;stdlib.h&gt;

// Deutsch oder English
#define GER 1
#define ENG 0
/*
**************************************************************************************************
*  MYSQL Bruteforce Programm aus purer lange Weile geschrieben 
*   23.03 2010 by cd 
*
*   gcc mysql-bruteforce.c -o mysql-bruteforce -lmysqlcli…</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/examples/iisscan?rev=1357809369&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-10T10:16:09+02:00</dc:date>
        <title>IISscan.sh</title>
        <link>https://code-reference.com/bash/examples/iisscan?rev=1357809369&amp;do=diff</link>
        <description>Simple IIS network scanner

Requirements:
grep, nmap, netcat



#!/bin/bash
# A Simple IIS network scanner
# ./iisscan.sh 10.*.54.3-23 output
# http://code-reference.com
# thanks to Ge0rG
clear
if [ $# -ne 2 ]
    then
	echo &quot;$0 [ip room] [outputfile]&quot; &gt;&amp;2
	exit 0
	else
	    echo &quot;Written by cd ;) &quot;
	    echo &quot;scan started against to $1 on port 80&quot;
	    echo &quot;ScR1Ptk1dDi3 Pr0t3c7 Sy5t3m v 1.o&quot;;exit 1
  
	nmap $1 -p 80 -sS -oG ~/$1.out | grep open | cut '-d ' -f 2 
	cat ~/$1.out | grep open | cut…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fgetc?rev=1417696073&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-12-04T13:27:53+02:00</dc:date>
        <title>fgetc</title>
        <link>https://code-reference.com/c/stdio.h/fgetc?rev=1417696073&amp;do=diff</link>
        <description>fgetc


    int fgetc ( FILE * stream );


Returns next character from (input) stream stream, or EOF on end-of-file or error.

C Sourcecode Example


/* 
 * fgetc example code
 * http://code-reference.com/c/stdio.h/fgetc 
 */


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main( void )
{
  FILE *stream;
  char c;

  if((stream=fopen(&quot;test.txt&quot;,&quot;r&quot;))==NULL) {
    printf(&quot;Cannot open file.\n&quot;);
    return 1;
  }

  while((c = fget…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/fgetwc?rev=1708041932&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:32+02:00</dc:date>
        <title>fgetwc</title>
        <link>https://code-reference.com/c/wchar.h/fgetwc?rev=1708041932&amp;do=diff</link>
        <description>fgetwc


   #include &lt;wchar.h&gt;
   wint_t fgetwc(FILE *);


fgetwc Description

fgetwc reads in a single character from Stream and returns its value as a wide character.

C Sourcecode Example


/* 
 * fgetwc example code
 * http://code-reference.com/c/wchar.h/fgetwc
 */
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */
#include &lt;wchar.h&gt;

int main( void )
{
    FILE* stream = fopen(&quot;testmb.txt&quot;, &quot;r&quot;);

    if (!stream) {
        printf(&quot;Co…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fflush?rev=1708041940&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:40+02:00</dc:date>
        <title>fflush</title>
        <link>https://code-reference.com/c/stdio.h/fflush?rev=1708041940&amp;do=diff</link>
        <description>fflush


    int fflush(FILE *stream);


Flushes stream stream and returns zero on success or EOF on error. Effect undefined for input stream. fflush(NULL) flushes all output streams.

C Sourcecode Example


/* 
 * fflush example code
 * http://code-reference.com/c/stdio.h/fflush 
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

#define MAX 80
int main( void )
{
  FILE *filestream = fopen(&quot;test.txt&quot;, &quot;rt+&quot;);
  char buffer[MAX];
  i…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fgets?rev=1708041940&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:40+02:00</dc:date>
        <title>fgets</title>
        <link>https://code-reference.com/c/stdio.h/fgets?rev=1708041940&amp;do=diff</link>
        <description>fgets


    char *fgets(char *str, int n, FILE *stream);


Copies characters from (input) stream stream to sstr, stopping when n-1 characters copied, newline copied, end-of-file reached or error occurs. If no error, str is NUL-terminated. Returns NULL on end-of-file or error, str otherwise.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/file?rev=1708041940&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:40+02:00</dc:date>
        <title>FILE</title>
        <link>https://code-reference.com/c/stdio.h/file?rev=1708041940&amp;do=diff</link>
        <description>FILE
 FILE Pointer (stream)
 shows on a given file
 // here is a better explanation necessary
C Sourcecode Example


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main ( void )
{
FILE *filestream;

filestream=fopen(&quot;test.txt&quot;,&quot;r&quot;);

if (filestream == 0) {
perror(&quot;cannot open file&quot;);
}

fclose(filestream);
return 0;

}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fputc?rev=1708041941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:41+02:00</dc:date>
        <title>fputc</title>
        <link>https://code-reference.com/c/stdio.h/fputc?rev=1708041941&amp;do=diff</link>
        <description>fputc


    int fputc(int ch, FILE *stream); 


Writes ch, to stream stream. Returns ch, or EOF on error.

C Sourcecode Example


/* 
 * fputc example code
 * http://code-reference.com/c/stdio.h/fputc 
 */


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

 
int main( void )
{
  FILE *stream, *stream_target;
  char c;
 
  if((stream=fopen(&quot;test.txt&quot;,&quot;rb&quot;))==NULL) {
    printf(&quot;Cannot open file.\n&quot;);
    return 1;
  }
 
  if((stream_targ…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/putc?rev=1708041941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:41+02:00</dc:date>
        <title>putc</title>
        <link>https://code-reference.com/c/stdio.h/putc?rev=1708041941&amp;do=diff</link>
        <description>putc


    int putc(int char, FILE *stream); 


put char into a stream.

C Sourcecode Example


/* 
 * putc example code
 * http://code-reference.com/c/stdio.h/putc 
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

int main( void )
{
  int c;
  FILE *stream, *destination;
  
  stream = fopen(&quot;test.txt&quot;, &quot;r&quot;);
  destination = fopen(&quot;test_copy.txt&quot;,&quot;w&quot;);

  if (stream == 0 || destination == 0) { 
     perror(&quot;cannot open stream&quot;);
  …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fwrite?rev=1708041942&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:42+02:00</dc:date>
        <title>fwrite</title>
        <link>https://code-reference.com/c/stdio.h/fwrite?rev=1708041942&amp;do=diff</link>
        <description>size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);


The fwrite() function writes, from the array buffer, count objects of size size to stream. The return value is the number of objects written. 

C Sourcecode Example


/* 
 * fwrite example code
 * http://code-reference.com/c/stdio.h/fwrite 
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


struct CD_COLLECTION {
  char album_name[42];
  int year;
  char arti…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/ftell?rev=1708041940&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:40+02:00</dc:date>
        <title>ftell</title>
        <link>https://code-reference.com/c/stdio.h/ftell?rev=1708041940&amp;do=diff</link>
        <description>ftell


    long int ftell(FILE *stream);


Returns current file position for stream stream, or -1 on error.

C Sourcecode Example


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

 
int main( void )
{
    FILE *stream;
    int c;
 
    if((stream=fopen(&quot;test.txt&quot;,&quot;r&quot;))==NULL) {
        printf(&quot;Cannot open file.\n&quot;);
        return 1;
      }
 
    while((c = fgetc(stream) ) != EOF) {
        printf(&quot;position of pointer in the stream i…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/tmpfile?rev=1708041940&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:40+02:00</dc:date>
        <title>tmpfile</title>
        <link>https://code-reference.com/c/stdio.h/tmpfile?rev=1708041940&amp;do=diff</link>
        <description>FILE *tmpfile(void);


tmpfile

Creates temporary file which will be removed when closed or on normal program termination. 

standard mode (mode “wb+”)

Returns stream or NULL on failure.


C Sourcecode Example


/* 
 * tmpfile example code
 * http://code-reference.com/c/stdio.h/tmpfile 
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main ( void )
{
  FILE *stream = tmpfile();
  char c;

  if( stream == NULL ) {
  perror(&quot;Er…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fscanf?rev=1708041942&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:42+02:00</dc:date>
        <title>fscanf</title>
        <link>https://code-reference.com/c/stdio.h/fscanf?rev=1708041942&amp;do=diff</link>
        <description>fscanf


    int fscanf(FILE *stream, const char *format, ...);


Performs formatted input conversion, reading from stream stream according to format format. The function returns when format is fully processed. Returns number of items converted and assigned, or EOF if end-of-file or error occurs before any conversion. Each of the arguments following format must be a pointer. Format string may contain:</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/ungetc?rev=1708041943&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:43+02:00</dc:date>
        <title>ungetc</title>
        <link>https://code-reference.com/c/stdio.h/ungetc?rev=1708041943&amp;do=diff</link>
        <description>ungetc


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

 int ungetc(int chr, FILE *stream);


Pushes chr (which must not be EOF), onto (input) stream stream such that it will be returned by the next read. Only one character of pushback is guaranteed (for each stream). Returns chr, or EOF on error.</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/how_to/tests?rev=1533268704&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-08-03T05:58:24+02:00</dc:date>
        <title>bash: &quot;How To&quot; ... utilize tests</title>
        <link>https://code-reference.com/bash/how_to/tests?rev=1533268704&amp;do=diff</link>
        <description>bash: &quot;How To&quot; ... utilize tests
operationwhatcodestringvariable equal to “xyz“if [ $STR == “xyz” ]variable unequal to “xyz“if [ $STR != “xyz” ]variable contains substring “xyz“if [[ $STR =~ “xyz” ]]variable is in list “abc” or “def” (or ...)if [[ $STR =~ ^(“abc”|“def”)$ ]]integervariable equal to nif [ $STR -eq n ]file“node” exists 
 (whatever type i.e. file, folder, ...)if [ -e “node” ]regular “filename” existsif [ -f “filename” ]create unique temporary filetouch /tmp/$$.tmpfind file “filename…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/graphresult?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>graphresult</title>
        <link>https://code-reference.com/c/graphics.h/graphresult?rev=1708041948&amp;do=diff</link>
        <description>graphresult

Syntax of graphresult


#include &lt;graphics.h&gt;
int graphresult(void);
  

Description of graphresult


graphresult returns the error code for the last graphics operation that
reported an error and resets the error level to grOk.
The following table lists the error codes returned by graphresult. The
enumerated type graph_errors defines the errors in this table.
graph_errors is declared in graphics.h.
code  constant     Corresponding error message string
0 grOk   No error
-1grNoInitGra…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/setbuf?rev=1708041941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:41+02:00</dc:date>
        <title>setbuf</title>
        <link>https://code-reference.com/c/stdio.h/setbuf?rev=1708041941&amp;do=diff</link>
        <description>void setbuf(FILE *stream, char *buffer);


Controls buffering for stream stream. For null buf, turns off buffering, otherwise equivalent to (void)setvbuf(stream, buf, _IOFBF, BUFSIZ).

setbuf is deprecated use setvbuf instead

C Sourcecode Example


/* 
 * setbuf example code
 * http://code-reference.com/c/stdio.h/setbuf 
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

 
int main( void )
{
  FILE *stream = fopen(&quot;test.txt&quot;, &quot;w&quot;);
…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fputs?rev=1357591171&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-07T21:39:31+02:00</dc:date>
        <title>fputs</title>
        <link>https://code-reference.com/c/stdio.h/fputs?rev=1357591171&amp;do=diff</link>
        <description>int fputs(const char *str, FILE *stream); 


Writes str, to (output) stream stream. Returns non-negative on success or EOF on error.

C Sourcecode Example


/* 
 * fputs example code
 * http://code-reference.com/c/stdio.h/fputs 
 */


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

int main( void )
{     
  FILE *stream;
  
  if((stream=fopen(&quot;test.txt&quot;,&quot;w&quot;))==NULL) {
    printf(&quot;Cannot open file for writing.\n&quot;);
    return 1;
  }

  …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/installuserfont?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>installuserfont</title>
        <link>https://code-reference.com/c/graphics.h/installuserfont?rev=1708041951&amp;do=diff</link>
        <description>installuserfont

Syntax of installuserfont


#include &lt;graphics.h&gt;
int installuserfont(char *name);
  

Description of installuserfont


name is a file name in the current directory (pathname is not supported)
of a font file containing a stroked font. Up to twenty fonts can be
installed at one time.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/string.h/strtok?rev=1361639445&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-23T18:10:45+02:00</dc:date>
        <title>strtok</title>
        <link>https://code-reference.com/c/string.h/strtok?rev=1361639445&amp;do=diff</link>
        <description>#include &lt;stdlib.h&gt;
char *strtok(char *str1, const char *str2);


description of strtok

Function strtok breaks a string (str1) into individual strings based on the so-called token. The string is separated by one delimiter (str2).
“str2” may contain multiple tokens, e.g. str2 = “\ n” (ie separation in space, comma, New Line, Point).</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/write?rev=1378710442&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-09-09T09:07:22+02:00</dc:date>
        <title>write</title>
        <link>https://code-reference.com/java/io/printstream/write?rev=1378710442&amp;do=diff</link>
        <description>Writes count or one byte to target stream/buffer.


write(int oneByte);
write(byte[] buffer, int offset, int length);



Language Example



      try(    //Try-with-resource-block
            FileWriter stream = new FileWriter(&quot;output.txt&quot;); // create file 
            BufferedWriter output = new BufferedWriter(stream);
         ) {
     
        output.write(&quot;Hello Harddisk&quot;);             // Write to Stream
       //This is an auto-closable block so no need of &quot;output.close();&quot;
       }
      …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fread?rev=1708041943&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:43+02:00</dc:date>
        <title>fread</title>
        <link>https://code-reference.com/c/stdio.h/fread?rev=1708041943&amp;do=diff</link>
        <description>fread


    size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);


fread reads num number of objects from a stream (where each object is size bytes) and places them into the array pointed to by buffer. 
The return value of the function is the number of read data</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fpos_t?rev=1708041944&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:44+02:00</dc:date>
        <title>fpos_t</title>
        <link>https://code-reference.com/c/stdio.h/fpos_t?rev=1708041944&amp;do=diff</link>
        <description>Object containing information to specify a position within a file
This type of object is used to specify a position within a file. An object of this type is capable of specifying uniquely the position within a file.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/fgetws?rev=1708041934&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:34+02:00</dc:date>
        <title>fgetws</title>
        <link>https://code-reference.com/c/wchar.h/fgetws?rev=1708041934&amp;do=diff</link>
        <description>fgetws


   #include &lt;wchar.h&gt;
   wchar_t *fgetws(wchar_t *restrict, int, FILE *stream);


Description

fgetws reads wide characters into “*restrict” from “stream”

fgetws will also stop reading if it encounters a newline character. In which case,

the newline character will put into the string as long as the number of characters

does not exceed “length - 1”. 



The function will also stop reading if it reaches the end of the stream. 

If an error or EOF occurs, the function returns NULL inste…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/writeimagefile?rev=1430946537&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-05-06T23:08:57+02:00</dc:date>
        <title>writeimagefile</title>
        <link>https://code-reference.com/c/graphics.h/writeimagefile?rev=1430946537&amp;do=diff</link>
        <description>writeimagefile

Syntax of writeimagefile


#include &quot;graphics.h&quot;
void writeimagefile(
    const char* title=NULL,	
    double width_inches=7, double border_left_inches=0.75, double
border_top_inches=0.75,
    int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX
    );</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/clearerr?rev=1708041944&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:44+02:00</dc:date>
        <title>clearerr</title>
        <link>https://code-reference.com/c/stdio.h/clearerr?rev=1708041944&amp;do=diff</link>
        <description>clearerr


    void clearerr(FILE *stream);


Description

The clearerr function resets the error flags and EOF indicator for the given stream.

When an error occurs, you can use |perror()| to figure out which error actually occurred. 

clearerr C Sourcecode Example


/* 
 * clearerr example code
 * http://code-reference.com/c/stdio.h/clearerr 
 */
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main( void )
{
  FILE *handle;
  ha…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/setvbuf?rev=1708041944&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:44+02:00</dc:date>
        <title>setvbuf</title>
        <link>https://code-reference.com/c/stdio.h/setvbuf?rev=1708041944&amp;do=diff</link>
        <description>int setvbuf(FILE *stream, char *buffer, int mode, size_t size); 


Controls buffering for stream stream. mode is _IOFBF for full buffering, _IOLBF for line buffering, _IONBF for no buffering. Non-null buf specifies buffer of size size to be used; otherwise, a buffer is allocated. Returns non-zero on error. Call must be before any other operation on stream.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/registerbgidriver?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>registerbgidriver</title>
        <link>https://code-reference.com/c/graphics.h/registerbgidriver?rev=1708041949&amp;do=diff</link>
        <description>registerbgidriver

Syntax of registerbgidriver


#include &lt;graphics.h&gt;
int registerbgidriver(void (*driver)(void));
  

Description of registerbgidriver


registerbgidriver enables a user to load a driver file and &quot;register&quot; the
driver. Once its memory location has been passed to registerbgidriver,
initgraph uses the registered driver. A user-registered driver can be
loaded from disk onto the heap, or converted to an .OBJ file (using
BGIOBJ.EXE) and linked into the .EXE.
Calling registerbgidrive…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/readimagefile?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>readimagefile</title>
        <link>https://code-reference.com/c/graphics.h/readimagefile?rev=1708041948&amp;do=diff</link>
        <description>readimagefile

Syntax of readimagefile


#include &quot;graphics.h&quot;
void readimagefile(
    const char* title=NULL,	
    int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX
    );
  

Description of readimagefile

&lt;code c&gt;
The readimagefile function is available in the winbgim implementation of
BGI graphics. You do not need to include conio.h; just include
graphics.h. The function reads a BMP, GIF, JPG, ICO, EMF or WMF image
file and displays it in part of the current active window. The fi…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fputchar?rev=1708041943&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:43+02:00</dc:date>
        <title>description</title>
        <link>https://code-reference.com/c/stdio.h/fputchar?rev=1708041943&amp;do=diff</link>
        <description>int fputchar( int c );


description

The fputchar() function writes the character specified by the argument c to the output stream stdout. This function is identical to the putchar() function. 

example


#include &lt;stdio.h&gt;

int main( void )
  {
    FILE *fp;
    int c;

    fp = fopen( &quot;file.txt&quot;, &quot;r&quot; );
    if( fp != NULL ) {
      c = fgetc( fp );
      while( c != EOF ) {
        fputchar( c );
        c = fgetc( fp );
      }
      fclose( fp );
    }
  }</description>
    </item>
    <item rdf:about="https://code-reference.com/c?rev=1515738548&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:08+02:00</dc:date>
        <title>C Library</title>
        <link>https://code-reference.com/c?rev=1515738548&amp;do=diff</link>
        <description>Online reference for the C (standard) library

C is an imperative programming language that the computer scientist Dennis Ritchie developed in the early 1970s at Bell Laboratories for System Programming of the operating system Unix.

C Library Overview
 Library                 Description              assert.h Overview        assertion                 ctype.h         character classification  math.h          mathematical functions    mysql Overview   MySQL implementation      stdarg.h Overview  …</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/case?rev=1708040895&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T00:48:15+02:00</dc:date>
        <title>case</title>
        <link>https://code-reference.com/bash/case?rev=1708040895&amp;do=diff</link>
        <description>case

The case and select constructs are technically not loops, 
since they do not iterate the execution of a code block. Like loops,
however, they direct program flow according to conditions at the top or bottom of the block.

Controlling program flow in a code block

case (in) / esac

The case construct is the shell scripting analog to switch in C/C++. 
It permits branching to one of a number of code blocks, depending on condition tests. 
It serves as a kind of shorthand for multiple if/then/e…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/fputws?rev=1708041933&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:33+02:00</dc:date>
        <title>fputws</title>
        <link>https://code-reference.com/c/wchar.h/fputws?rev=1708041933&amp;do=diff</link>
        <description>fputws


   #include &lt;wchar.h&gt;
   int fputws(const wchar_t *string, FILE *stream);


Description

fputws writes the wide-character string to the stream, at the position of the file pointer and advances the pointer.

If the write was successful, a nonnegative integer value is returned. Otherwise, the function returns WEOF.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/perror?rev=1708041943&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:43+02:00</dc:date>
        <title>perror</title>
        <link>https://code-reference.com/c/stdio.h/perror?rev=1708041943&amp;do=diff</link>
        <description>void perror(const char *str);


Prints str (if non-null) and strerror(errno) to standard error as would:


fprintf(stderr, &quot;%s: %s\n&quot;, (s != NULL ? s : &quot;&quot;), strerror(errno))


C Sourcecode Example


/* 
 * perror example code
 * http://code-reference.com/c/stdio.h/perror 
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main ( void )
{
FILE *stream;

stream = fopen(&quot;test_not_exists.txt&quot;,&quot;r&quot;);

if (stream == 0) {
perror(&quot;Here c…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/gets?rev=1708041941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:41+02:00</dc:date>
        <title>gets</title>
        <link>https://code-reference.com/c/stdio.h/gets?rev=1708041941&amp;do=diff</link>
        <description>gets


    char *gets(char *str); 


Copies characters from stdin into str until newline encountered, end-of-file reached, or error occurs. Does not copy newline. NUL-terminates s. Returns str, or NULL on end-of-file or error. Should not be used because of the potential for buffer overflow.</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/control_structures/if?rev=1708041872&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:32+02:00</dc:date>
        <title>if</title>
        <link>https://code-reference.com/cpp/control_structures/if?rev=1708041872&amp;do=diff</link>
        <description>if

The 'if' statement is one of many methods to control the flow of a program.  It tests whether or not a certain condition is true, and then executes code based on the test.


#include &lt;iostream&gt;
using namespace std;

int main(){

if (TRUE){
   cout &lt;&lt; &quot;This statement will be executed&quot;;
}

if (FALSE){
   cout &lt;&lt; &quot;This one will not&quot;;
}
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/vfscanf?rev=1361805756&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-25T16:22:36+02:00</dc:date>
        <title>vfscanf</title>
        <link>https://code-reference.com/c/stdio.h/vfscanf?rev=1361805756&amp;do=diff</link>
        <description>int vfscanf ( FILE * stream, const char * format, va_list arg );


description of vfscanf

The vscanf(), vfscanf(), and vsscanf() functions shall be equivalent to the scanf(), fscanf(), and sscanf() functions, respectively, except that instead of being called with a variable number of arguments, they are called with an argument list as defined in the &lt;stdarg.h&gt; header. These functions shall not invoke the va_end macro. As these functions invoke the va_arg macro, the value of ap after the return …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_info?rev=1361892865&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T16:34:25+02:00</dc:date>
        <title>mysql_info</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_info?rev=1361892865&amp;do=diff</link>
        <description>const char *mysql_info(MYSQL *mysql)


description of mysql_info

A character string containing additional information about the most recent query. NULL if no information about the request are available.

compile with gcc mysql_info.c -o mysql_info `mysql_config –cflags –libs` -Wall</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fprintf?rev=1708041941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:41+02:00</dc:date>
        <title>fprintf</title>
        <link>https://code-reference.com/c/stdio.h/fprintf?rev=1708041941&amp;do=diff</link>
        <description>int fprintf(FILE *stream, const char *format, ...);


Converts (according to format format) and writes output to stream stream. Number of characters written, or negative value on error, is returned.



optional flag:



-  left adjust

+  always sign

0  zero pad

#  Alternate form: for conversion character o, first digit will be zero, for [xX], prefix 0x or 0X to non-zero value, for [eEfgG], always decimal point, for [gG] trailing zeros not removed. 



optional minimum width: if specified as *…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/registerbgifont?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>registerbgifont</title>
        <link>https://code-reference.com/c/graphics.h/registerbgifont?rev=1708041949&amp;do=diff</link>
        <description>registerbgifont

Syntax of registerbgifont


#include &lt;graphics.h&gt;
int registerbgifont(void (*font)(void));
  

Description of registerbgifont


Calling registerbgifont informs the graphics system that the font pointed
to by font was included at link time. This routine checks the linked-in
code for the specified font; if the code is valid, it registers the code
in internal tables.
By using the name of a linked-in font in a call to registerbgifont, you
also tell the compiler (and linker) to link …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/initgraph?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>initgraph</title>
        <link>https://code-reference.com/c/graphics.h/initgraph?rev=1708041955&amp;do=diff</link>
        <description>initgraph

Syntax of initgraph


#include &lt;graphics.h&gt;
void initgraph(int *graphdriver, int *graphmode, char *pathtodriver);
  

Description of initgraph


initgraph initializes the graphics system by loading a graphics driver
from disk (or validating a registered driver), and putting the system
into graphics mode.
To start the graphics system, first call the initgraph function.
initgraph loads the graphics driver and puts the system into graphics
mode. You can tell initgraph to use a particular…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/fputwc?rev=1708041933&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:33+02:00</dc:date>
        <title>fputwc</title>
        <link>https://code-reference.com/c/wchar.h/fputwc?rev=1708041933&amp;do=diff</link>
        <description>fputwc


   #include &lt;wchar.h&gt;
   wint_t fputwc(wchar_t, FILE *);


Description

fputwc writes a single wide-character to the stream at the position of the file pointer and advances the pointer.

If the write was successful, the character that was written is returned. Otherwise, the function returns WEOF.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/tmpnam?rev=1708041939&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:39+02:00</dc:date>
        <title>tmpnam</title>
        <link>https://code-reference.com/c/stdio.h/tmpnam?rev=1708041939&amp;do=diff</link>
        <description>tmpnam


    char *tmpnam(char *str);


Assigns to s (if s non-null) and returns unique name for a temporary file. Unique name is returned for each of the first TMP_MAX invocations.

C Sourcecode Example


/* 
 * tmpnam example code
 * http://code-reference.com/c/stdio.h/tmpnam 
 */

#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main ( void ) 
{
FILE *tmpstream;
char *tmpfile;

tmpfile = tmpnam(NULL);
tmpstream= fopen(tmpfile, &quot;…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/vfwprintf?rev=1708041927&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:27+02:00</dc:date>
        <title>vfwprintf</title>
        <link>https://code-reference.com/c/wchar.h/vfwprintf?rev=1708041927&amp;do=diff</link>
        <description>vfwprintf
 #include &lt;wchar.h&gt;
 int vfwprintf(FILE *restrict, const wchar_t *restrict, va_list);
return value

C Sourcecode Example


no example yet


output</description>
    </item>
    <item rdf:about="https://code-reference.com/c/preprocessor/include?rev=1708041967&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:07+02:00</dc:date>
        <title>#include</title>
        <link>https://code-reference.com/c/preprocessor/include?rev=1708041967&amp;do=diff</link>
        <description>#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */
#include &quot;myheader.h&quot;


description

include a file into your c sourcecode

C Example 1


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

int main(void){
   printf(&quot;the answer to life the universe and everything is %d \n&quot;, 42 );
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/sscanf?rev=1708041941&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:41+02:00</dc:date>
        <title>c:stdio.h:sscanf</title>
        <link>https://code-reference.com/c/stdio.h/sscanf?rev=1708041941&amp;do=diff</link>
        <description>#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

    int sscanf(const char *str, const char *format, ...);


sscanf reads formatted input text from the string addressed by source .

No file input is performed. Following the format in the argument list may be one or more additional pointers addressing storage where the input values are stored.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/examples/talk_to_a_modem?rev=1708041925&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:25+02:00</dc:date>
        <title>Talk to a Modem</title>
        <link>https://code-reference.com/c/examples/talk_to_a_modem?rev=1708041925&amp;do=diff</link>
        <description>Talk to a Modem

This is a Simple source how to Access a Modem.

it is very simple, just write a Modem Command to your Serial Port

in this case a serial Port ttyS0 in Linux


C Sourcecode to acces a modem


#include &lt;stdio.h&gt;
#include &lt;unistd.h&gt; // for sleep

/**
 * argument 1 is the number to dial
 * for this example you need a modem on Serial Port (in linux)
 */
int main(int argc,char *argv[])
{
    FILE *modem;
    char get[100];

    modem=fopen(&quot;/dev/ttyS0&quot;,&quot;rw&quot;);
    fprintf(modem,&quot;ATZ\r\…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/examples/hostscanner?rev=1708041925&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:25+02:00</dc:date>
        <title>c:examples:hostscanner</title>
        <link>https://code-reference.com/c/examples/hostscanner?rev=1708041925&amp;do=diff</link>
        <description>#include &lt;stdio.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;netdb.h&gt;
#include &lt;arpa/inet.h&gt;
#define fir 16777216
#define sec 65536
#define the 256

int s;
struct sockaddr_in addr;
char rmt_host[100];
int skan(port)
int port;
{
 int r;
    s = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
    if (s &lt; 0) {
       printf(&quot;ERROR: socket() failed\n&quot;);
       exit(0);
    }

    addr.sin_family = PF_INET;
    addr.sin_port = htons(port);
    addr.sin_addr.s_addr = …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/settextstyle?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>settextstyle</title>
        <link>https://code-reference.com/c/graphics.h/settextstyle?rev=1708041950&amp;do=diff</link>
        <description>settextstyle

Syntax of settextstyle


#include &lt;graphics.h&gt;
void settextstyle(int font, int direction, int charsize);
  

Description of settextstyle


settextstyle sets the text font, the direction in which text is
displayed, and the size of the characters. A call to settextstyle affects
all text output by outtext and outtextxy.
The parameters font, direction, and charsize passed to settextstyle are
described in the following:
font: One 8x8 bit-mapped font and several &quot;stroked&quot; fonts are avail…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/fwide?rev=1708041927&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:27+02:00</dc:date>
        <title>fwide</title>
        <link>https://code-reference.com/c/wchar.h/fwide?rev=1708041927&amp;do=diff</link>
        <description>fwide
 #include &lt;wchar.h&gt;
 int fwide(FILE *stream, int mode);
fwide shall determine the orientation of the stream pointed to by stream. 

return value

greater than 0 if, after the call, the stream has wide-orientation

less than 0 if the stream has byte-orientation

0 if the stream has no orientation.</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h/defaultmanager?rev=1708042342&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:22+02:00</dc:date>
        <title>defaultManager</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h/defaultmanager?rev=1708042342&amp;do=diff</link>
        <description>defaultManager

    

+ (NSFileManager *)defaultManager;
 


Return Value
- Returns the shared file manager object for the process.

ObjC Sourcecode Example



    // ** Default FileManager **
    NSFileManager *defaultManager = [NSFileManager defaultManager];
    
    // ** Output Default FileManager **
    NSLog(@&quot;DefaultManager: %@&quot;, defaultManager);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h?rev=1708041981&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:21+02:00</dc:date>
        <title>NSFileManager</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsfilemanager.h?rev=1708041981&amp;do=diff</link>
        <description>NSFileManager

NSFileManager class enables you to perform many generic file-system operations.


init

defaultManager</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/getwc?rev=1708041928&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:28+02:00</dc:date>
        <title>getwc</title>
        <link>https://code-reference.com/c/wchar.h/getwc?rev=1708041928&amp;do=diff</link>
        <description>getwc
 #include &lt;wchar.h&gt;
 wint_t getwc(FILE *);
return value

C Sourcecode Example


no example yet


output</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/fwprintf?rev=1708041934&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:34+02:00</dc:date>
        <title>fwprintf</title>
        <link>https://code-reference.com/c/wchar.h/fwprintf?rev=1708041934&amp;do=diff</link>
        <description>fwprintf
 #include &lt;wchar.h&gt;
 int fwprintf(FILE *restrict, const wchar_t *restrict, ...);
return value

C Sourcecode Example


no example yet


output</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/ungetwc?rev=1708041932&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:32+02:00</dc:date>
        <title>ungetwc</title>
        <link>https://code-reference.com/c/wchar.h/ungetwc?rev=1708041932&amp;do=diff</link>
        <description>ungetwc
 #include &lt;wchar.h&gt;
 wint_t ungetwc(wint_t, FILE *);
return value

C Sourcecode Example


no example yet


output</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/clearmouseclick?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>clearmouseclick</title>
        <link>https://code-reference.com/c/graphics.h/clearmouseclick?rev=1708041958&amp;do=diff</link>
        <description>clearmouseclick

Syntax of clearmouseclick


#include &quot;graphics.h&quot;
void clearmouseclick(int kind);
  

Description of clearmouseclick


The clearmouseclick function is available in the winbgim implementation
of BGI graphics. This is just like getmouseclick, except it does not
provide the x and y coordinates of the event. The value of the argument
kind may be any of the constants listed above. After calling
getmouseclick, for a particular kind of event, the ismouseclick will
return false for that…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner?rev=1369672518&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-27T18:35:18+02:00</dc:date>
        <title>Scanner()</title>
        <link>https://code-reference.com/java/util/scanner?rev=1369672518&amp;do=diff</link>
        <description>Reads input from a Keyboard, or a Device

CODE_SIGN_IDENTITY

--verify

--file-list

--display -r- Terminal.app

example Scanner in java


package scanner;

import java.util.Scanner;

public class Scanner {

    public static void main(String[] args) {
        
        /* Create Scanner Object for the input from the keyboard */
        Scanner scan = new Scanner(System.in); 
        
        double currency, amount, exchangeRate;
        String currencyName, newCurrency;
                
       …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/ismouseclick?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>ismouseclick</title>
        <link>https://code-reference.com/c/graphics.h/ismouseclick?rev=1708041949&amp;do=diff</link>
        <description>ismouseclick

Syntax of ismouseclick


#include &quot;graphics.h&quot;
bool ismouseclick(int kind);
  

Description of ismouseclick


The ismouseclick function is available in the winbgim implementation of
BGI graphics. This function returns true if there is an unprocessed mouse
event of the specified kind. The argument to ismouseclick is one of these
constants from the graphics.h file:
  WM_MOUSEMOVE
if you want to detect a mouse movement
  WM_LBUTTONDBLCLK
...detect when the left mouse button is double …</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp?rev=1392840081&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-02-19T21:01:21+02:00</dc:date>
        <title>C++ Library Overview</title>
        <link>https://code-reference.com/cpp?rev=1392840081&amp;do=diff</link>
        <description>C++ is an Object Oriented programming language standardized by the ISO. It was developed in 1979 by Bjarne Stroustrup at AT&amp;T Bell Labs as a “child” of the C programming language. A C++ source file will have the extension ”.cpp” and the header will have the obvious ”.h”. The latest version of C++ is C++11. Confused? See the links below.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/fwscanf?rev=1708041927&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:27+02:00</dc:date>
        <title>fwscanf</title>
        <link>https://code-reference.com/c/wchar.h/fwscanf?rev=1708041927&amp;do=diff</link>
        <description>fwscanf
 #include &lt;wchar.h&gt;
 int fwscanf(FILE *restrict, const wchar_t *restrict, ...);
return value

C Sourcecode Example


no example yet


output</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/vfwscanf?rev=1708041934&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:34+02:00</dc:date>
        <title>vfwscanf</title>
        <link>https://code-reference.com/c/wchar.h/vfwscanf?rev=1708041934&amp;do=diff</link>
        <description>vfwscanf
 #include &lt;wchar.h&gt;
 int vfwscanf(FILE *restrict, const wchar_t *restrict, va_list);
return value

C Sourcecode Example


no example yet


output</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmouseclick?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>getmouseclick</title>
        <link>https://code-reference.com/c/graphics.h/getmouseclick?rev=1708041947&amp;do=diff</link>
        <description>getmouseclick

Syntax of getmouseclick


#include &quot;graphics.h&quot;
voud getmouseclick(int kind, int&amp;amp; x, int&amp;amp; y);
  

Description of getmouseclick


The getmouseclick function is available in the winbgim implementation of
BGI graphics. This function sets x and y to the pixel coordinates of an
unprocessed event of the specified kind. If there is no such event, then
the function sets both x and y to -1. The value of the argument kind may
be any of the constants listed above. After calling getmo…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/keywords/stdout?rev=1358093495&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-13T17:11:35+02:00</dc:date>
        <title>stdout</title>
        <link>https://code-reference.com/c/keywords/stdout?rev=1358093495&amp;do=diff</link>
        <description>stdout
 Pointer to a type FILE
 
C Sourcecode Example


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */


int main ( void ) 
{
int c=66;

fputc(c, stdout);
return 0;

}


output
  ./stdout.c
  B</description>
    </item>
    <item rdf:about="https://code-reference.com/java?rev=1515738548&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:08+02:00</dc:date>
        <title>java</title>
        <link>https://code-reference.com/java?rev=1515738548&amp;do=diff</link>
        <description>Java is an object oriented programming language and a registered trademark of the company Sun Microsystems (since 2010 Oracle)



we need some support to add the missing librarys



 Name            Description                                                               io       Using inputs and outputs through data streams, file systems, ect.    lang       Java classes that are fundamental to the design of the language</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h?rev=1708040902&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T00:48:22+02:00</dc:date>
        <title>c:graphics.h</title>
        <link>https://code-reference.com/c/graphics.h?rev=1708040902&amp;do=diff</link>
        <description>a Download of graphics.h is available as rar file</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/putwc?rev=1708041928&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:28+02:00</dc:date>
        <title>putwc</title>
        <link>https://code-reference.com/c/wchar.h/putwc?rev=1708041928&amp;do=diff</link>
        <description>putwc
 #include &lt;wchar.h&gt;
 wint_t putwc(wchar_t, FILE *);
return value

C Sourcecode Example


no example yet


output</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/examples/fonts?rev=1708041979&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:19+02:00</dc:date>
        <title>Custom Fonts</title>
        <link>https://code-reference.com/objective-c/examples/fonts?rev=1708041979&amp;do=diff</link>
        <description>Using a custom font in Cocoa touch


There are a lot of fonts provided by iOS. This example will use “Heiti SC”.

Importing a font not provided by iOS

Sample Font: Lobster.otf

1. Copy the font into your project.

2. Go to project info.plist and add the key: “fonts provided by application”. It should be kind of type array.

3. Insert the font as item into the array. The item font-name must be the name of your font-file (here: Lobster.otf).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/examples/ftp_scanner?rev=1708041925&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:25+02:00</dc:date>
        <title>simple ftp scanner</title>
        <link>https://code-reference.com/c/examples/ftp_scanner?rev=1708041925&amp;do=diff</link>
        <description>simple ftp scanner

written by MoD and ZehDeh 2001

example of a simple ftp scanner in c


#include &lt;stdio.h&gt;
#include &lt;string.h&gt;
#include &lt;netdb.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/select.h&gt;


void logintoftp();

char tmp[256];
char name[300], pass[300], buf[300], buf2[300];
char snd[1024], rcv[1024];
int n;

int sockfd;

int main(int argc, char **argv)
{
	char sendln[1024], recvln[4048], buf1[800], buf2[1000];
	char *p, *q;
	int len, offset =…</description>
    </item>
</rdf:RDF>
