<?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-19T01:05:52+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/c/stdlib.h/malloc?rev=1708041892&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/stdlib.h/realloc?rev=1708041890&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/free?rev=1413084164&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/bash/examples/smbscan?rev=1357809303&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/variable_scope_and_qualifiers/const?rev=1708041853&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/abort?rev=1708041892&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/bash/shortcuts?rev=1432756499&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/utilities/sizeof?rev=1708041864&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/c/stdlib.h/malloc?rev=1708041892&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:52+02:00</dc:date>
        <title>malloc</title>
        <link>https://code-reference.com/c/stdlib.h/malloc?rev=1708041892&amp;do=diff</link>
        <description>#include &lt;stdlib.h&gt;
    void *malloc(size_t size);


description

The malloc() function shall allocate unused space for an object whose size in bytes is specified by size and whose value is unspecified.



The order and contiguity of storage allocated by successive calls to malloc() is unspecified.

The pointer returned if the allocation succeeds shall be suitably aligned so that it may be assigned to a pointer 

to any type of object and then used to access such an object in the space allocated…</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/stdlib.h/realloc?rev=1708041890&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:50+02:00</dc:date>
        <title>realloc</title>
        <link>https://code-reference.com/c/stdlib.h/realloc?rev=1708041890&amp;do=diff</link>
        <description>realloc


    #include &lt;stdlib.h&gt;
    void *realloc(void *ptr, size_t size); 


description

The realloc() function shall change the size of the memory object pointed to by ptr to the size specified by size. 

The contents of the object shall remain unchanged up to the lesser of the new and old sizes. 

If the new size of the memory object would require movement of the object, the space for the previous instantiation of the object is freed.

If the new size is larger, the contents of the newly a…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h/free?rev=1413084164&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-12T05:22:44+02:00</dc:date>
        <title>free</title>
        <link>https://code-reference.com/c/stdlib.h/free?rev=1413084164&amp;do=diff</link>
        <description>#include &lt;stdlib.h&gt;
    void free(void *ptr);


description

The free() function shall cause the space pointed to by ptr to be deallocated; that is, made available for further allocation.

If ptr is a null pointer, no action shall occur. Otherwise, if the argument does not match a pointer earlier returned by 

the calloc(), malloc(), posix_memalign(), realloc(), or strdup() function, or if the space has been deallocated by a call

to free() or realloc(), the behavior is undefined.



Any use of …</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/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/arduino/variable_scope_and_qualifiers/const?rev=1708041853&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:13+02:00</dc:date>
        <title>const keyword</title>
        <link>https://code-reference.com/arduino/variable_scope_and_qualifiers/const?rev=1708041853&amp;do=diff</link>
        <description>The const keyword stands for constant. It is a variable qualifier that modifies the behavior of the variable, making a variable ”read-only”. This means that the variable can be used just as any other variable of its type, but its value cannot be changed. You will get a compiler error if you try to assign a value to a const variable.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h/abort?rev=1708041892&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:52+02:00</dc:date>
        <title>abort</title>
        <link>https://code-reference.com/c/stdlib.h/abort?rev=1708041892&amp;do=diff</link>
        <description>abort


    #include &lt;stdlib.h&gt;
    void abort(void);


Cause abnormal program termination, and try to catch SIGABRT. 

no return value

C Sourcecode Example


#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */
 /* for printf */
#include &lt;stdlib.h&gt;
int main( void )
{
  int x=2,y=5,i;
  i=x+y;
  
  printf(&quot;x = %i | y = %i\n&quot;, x, y);
  
  abort();
   
  /* will never execute, abort will terminate the programm */
  printf(&quot;result of %i+%i= %i…</description>
    </item>
    <item rdf:about="https://code-reference.com/bash/shortcuts?rev=1432756499&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-05-27T21:54:59+02:00</dc:date>
        <title>Bash Shortcuts</title>
        <link>https://code-reference.com/bash/shortcuts?rev=1432756499&amp;do=diff</link>
        <description>Bash Shortcuts
 shortcut       Description       Ctrl-a 	Move to the start of the line.Ctrl-e 	Move to the end of the line.Ctrl-b 	Move back one character.Alt-b 	Move back one word.Ctrl-f 	Move forward one character.Alt-f 	Move forward one word.Ctrl-] x 	Where x is any character, moves the cursor forward to the next occurance of x.Alt-Ctrl-] x 	Where x is any character, moves the cursor backwards to the previous occurance of x.Ctrl-u 	Delete from the cursor to the beginning of the line.Ctrl-k 	D…</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/utilities/sizeof?rev=1708041864&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:24+02:00</dc:date>
        <title>sizeof</title>
        <link>https://code-reference.com/arduino/utilities/sizeof?rev=1708041864&amp;do=diff</link>
        <description>Description

The sizeof operator returns the number of bytes in a variable type, or the number of bytes occupied by an array.

Syntax

sizeof(variable)

Parameters

variable: any variable type or array (e.g. int, float, byte)

Example code

The sizeof operator is useful for dealing with arrays (such as strings) where it is convenient to be able to change the  size of the array without breaking other parts of the program.</description>
    </item>
</rdf:RDF>
