<?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-04-25T13:22:16+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/java/classes/extends?rev=1366963338&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/dos.h/setdate?rev=1708041965&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/dos.h/getdate?rev=1708041965&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/time.h/asctime?rev=1708041883&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/examples/smbscan?rev=1357809303&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/srand?rev=1708041890&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/advanced_io/shiftout?rev=1360951161&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_info?rev=1361892865&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/classes/extends?rev=1366963338&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-26T10:02:18+02:00</dc:date>
        <title>extends</title>
        <link>https://code-reference.com/java/classes/extends?rev=1366963338&amp;do=diff</link>
        <description>extends extends an already existing class with custom methods


package myclass.mydate;

import java.util.Date;

/* 
 * extends Date = extends class java.util.Date 
 * java.util.Date must be importet 
 */
public class MyDate extends Date { 

    public int getFullYear() {
        
        return this.getYear() + 1900;
    }
    

    
// overrride the method getMonth from java.util.Date

    @Override
    public int getMonth() {
        return 99;
    }    
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/dos.h/setdate?rev=1708041965&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:05+02:00</dc:date>
        <title>setdate</title>
        <link>https://code-reference.com/c/dos.h/setdate?rev=1708041965&amp;do=diff</link>
        <description>struct time setdate( struct time );


description of setdate

change the system date



#include&lt;stdio.h&gt;
#include&lt;conio.h&gt;
#include&lt;dos.h&gt;

int main(void)
{
   struct date d;

   printf(&quot;Please type in new date ( day, month and year ) as int (ddmmyyyy):&quot;);
   scanf(&quot;%d%d%d&quot;,&amp;d.da_day,&amp;d.da_mon,&amp;d.da_year);

   setdate(&amp;d);

   printf(&quot;System date is now %d/%d/%d\n&quot;,d.da_day,d.da_mon,d.da_year);

   getch();
   return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/dos.h/getdate?rev=1708041965&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:05+02:00</dc:date>
        <title>getdate</title>
        <link>https://code-reference.com/c/dos.h/getdate?rev=1708041965&amp;do=diff</link>
        <description>description of getdate

Program to print the current system date, getdate c code below explain how to use this function to print computer date.


#include&lt;stdio.h&gt;
#include&lt;dos.h&gt;

int main(void)
{
   struct date d;
   getdate(&amp;d);
   printf(&quot;Date is %d/%d/%d\n&quot;,d.da_day,d.da_mon,d.da_year);
   return 0;
}</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/time.h/asctime?rev=1708041883&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:43+02:00</dc:date>
        <title>asctime</title>
        <link>https://code-reference.com/c/time.h/asctime?rev=1708041883&amp;do=diff</link>
        <description>asctime


   char *asctime(const struct tm *timeptr);


Description

The function asctime() converts the time in the struct ptr to a character string of the format:
Day Month Date Hour:Minute:Second Year\n\0

asctime C Sourcecode Example


/* 
 * asctime example code
 * http://code-reference.com/c/time.h/asctime 
 */
#include &lt;stdio.h&gt;
#include &lt;time.h&gt;
 
int main ( void )
{
  time_t rawtime;
  struct tm * timeinfo;
 
  time ( &amp;rawtime );
  timeinfo = localtime ( &amp;rawtime );
  printf ( &quot;Current …</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/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/stdlib.h/srand?rev=1708041890&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:50+02:00</dc:date>
        <title>srand</title>
        <link>https://code-reference.com/c/stdlib.h/srand?rev=1708041890&amp;do=diff</link>
        <description>srand


    #include &lt;stdlib.h&gt;
    void srand(unsigned int seed);


Description

srand is used to initialize the random number generator.

The use of date / time to initialize the generator 

means that the generated sequence of numbers “random” is.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/advanced_io/shiftout?rev=1360951161&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-15T18:59:21+02:00</dc:date>
        <title>shiftOut()</title>
        <link>https://code-reference.com/arduino/advanced_io/shiftout?rev=1360951161&amp;do=diff</link>
        <description>Description

Shifts out a byte of data one bit at a time.  Starts from either the most (i.e. the leftmost) or least (rightmost) significant bit.  Each bit is written in turn to a data pin, after which a clock pin is pulsed (taken high, then low) to indicate that the bit is available.</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-15T09:30:44+02:00</dc:date>
        <title>format</title>
        <link>https://code-reference.com/java/io/printstream/format?rev=1366011044&amp;do=diff</link>
        <description>format args to the format string format and write the result to the stream


format(String format, Object... args);

return value: stream

 sign  Description  0 if the place is not busy they prints a 0	# if the place is not busy they prints nothing	. decimal separator Separates and decimal places.	, Groups the numbers (a group is as large as the distance from ”,” to ”.”).	; Delimiter. To the left of the pattern is positive, the right for negative numbers.	- The default character for the negative…</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>
</rdf:RDF>
