<?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-06-21T07:52:51+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/java/util/scanner?rev=1369672518&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/stdio.h/rename?rev=1708041942&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/arduino/bitwise_operators/bitwiseand?rev=1708041855&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/start?rev=1501372323&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/datatypes?rev=1515738546&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/graphics.h/setviewport?rev=1415235930&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextint?rev=1365581650&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsdictionary.h/initwithobjectsandkeys?rev=1401479513&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextshort?rev=1365581695&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/control_structures/switch?rev=1365602129&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/classes/extends?rev=1366963338&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextfloat?rev=1365581634&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/printf?rev=1408637388&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_init?rev=1359920158&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_escape_string?rev=1362010868&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setcolor?rev=1430935280&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextlong?rev=1365581680&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/imagesize?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/control_structures/if?rev=1365582955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgpoint?rev=1708042343&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/c/string.h/strxfrm?rev=1361066569&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/variables/array?rev=1366179085&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printstream/append?rev=1708042322&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgsize?rev=1708042343&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgrect?rev=1708042343&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/objective-c/foundation.framework/nsstring.h/stringbyappendingstring?rev=1708042344&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/string/toarray?rev=1366267847&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/control_structures/else?rev=1708041838&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setbkcolor?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/sizeof?rev=1708041890&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/string.h/strrchr?rev=1361062063&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/playground/c/stdio.h/printf?rev=1501372178&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setallpalette?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsdictionary.h/allkeys?rev=1708042339&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/putimage?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextdouble?rev=1365581618&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/util/scanner/nextline?rev=1365581665&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/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/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/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/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/arduino/bitwise_operators/bitwiseand?rev=1708041855&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:15+02:00</dc:date>
        <title>Bitwise AND (&amp;), Bitwise OR (|),  Bitwise XOR (^)</title>
        <link>https://code-reference.com/arduino/bitwise_operators/bitwiseand?rev=1708041855&amp;do=diff</link>
        <description>Bitwise AND (&amp;)

The bitwise operators perform their calculations at the bit level of variables. They help solve a wide range of common programming problems. Much of the material below is from an excellent tutorial on bitwise math wihch may be found  here.</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/start?rev=1501372323&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-07-30T01:52:03+02:00</dc:date>
        <title>Programming Library / Reference with examples</title>
        <link>https://code-reference.com/start?rev=1501372323&amp;do=diff</link>
        <description>Be a part of our community and help to improve this reference.




This is a Wiki for all possible programming languages ​​with descriptions and examples.

The goal is to create a programming library reference for all the programming languages ​​out there

So do not hesitate to add some example code, adjust or correct the content</description>
    </item>
    <item rdf:about="https://code-reference.com/java/datatypes?rev=1515738546&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:06+02:00</dc:date>
        <title>Declaration Dataypes</title>
        <link>https://code-reference.com/java/datatypes?rev=1515738546&amp;do=diff</link>
        <description>package datatypes;

public class DataTypes {

    public static void main(String[] args) {
        // primitiv Datatypes
        
        boolean aa = true;     // 1 bit
        char bb = 'A';         // 2 Bytes
        char cc = 65;          // 2 Bytes
        byte dd = 12;          // 1 Byte -128 - +127
        short ee = 234;        // 2 Bytes -32768 - +32767
        int ff = 4711;         // 4 Bytes
        long gg = 34567;       // 8 Bytes
        float hh = 3.14f;      // 4 Bytes
        d…</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/graphics.h/setviewport?rev=1415235930&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-06T02:05:30+02:00</dc:date>
        <title>setviewport</title>
        <link>https://code-reference.com/c/graphics.h/setviewport?rev=1415235930&amp;do=diff</link>
        <description>setviewport

Syntax of setviewport


#include &lt;graphics.h&gt;
void setviewport(int left, int top, int right, int bottom, int clip);
  

Description of setviewport


setviewport establishes a new viewport for graphics output.
The viewport corners are given in absolute screen coordinates by
(left,top) and (right,bottom). The current position (CP) is moved to
(0,0) in the new window.
The parameter clip determines whether drawings are clipped (truncated) at
the current viewport boundaries. If clip is n…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextint?rev=1365581650&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:14:10+02:00</dc:date>
        <title>nextInt()</title>
        <link>https://code-reference.com/java/util/scanner/nextint?rev=1365581650&amp;do=diff</link>
        <description>public int nextInt()


return int scanned from the input

example nextInt 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); 
        
        int currency;
                
        System.out.print(&quot;Please enter a number: &quot;);
        currency = scan.nextInt(); // read currency
        
        System.…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsdictionary.h/initwithobjectsandkeys?rev=1401479513&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-05-30T21:51:53+02:00</dc:date>
        <title>initWithObjectsAndKeys</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsdictionary.h/initwithobjectsandkeys?rev=1401479513&amp;do=diff</link>
        <description>initWithObjectsAndKeys

    

- (instancetype)initWithObjectsAndKeys:(id)firstObject, (NSString*)firstKey, ...
 


Initializes a newly allocated dictionary with entries constructed from the specified set of values and keys.

Return Value
- NSDictionary</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextshort?rev=1365581695&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:14:55+02:00</dc:date>
        <title>nextShort()</title>
        <link>https://code-reference.com/java/util/scanner/nextshort?rev=1365581695&amp;do=diff</link>
        <description>public short nextShort()


return short scanned from the input

example nextShort() 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); 
        
        short currency;
                
        System.out.print(&quot;Please enter a number: &quot;);
        currency = scan.nextShort(); // read keyboard buffer
   …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/control_structures/switch?rev=1365602129&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T15:55:29+02:00</dc:date>
        <title>switch</title>
        <link>https://code-reference.com/java/control_structures/switch?rev=1365602129&amp;do=diff</link>
        <description>The switch statement is a multi-select control structure. An expression is evaluated once and compared to 'constants'. In case of equality, the 'statements' that come after the 'constant' are processed. In switch 'statements' can only ordinary data types (ie, 'int', 'long', char, short, etc.) can be used.</description>
    </item>
    <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/java/util/scanner/nextfloat?rev=1365581634&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:13:54+02:00</dc:date>
        <title>nextFloat()</title>
        <link>https://code-reference.com/java/util/scanner/nextfloat?rev=1365581634&amp;do=diff</link>
        <description>public float nextFloat()


return float scanned from the input

example nextFloat 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); 
        
        float currency;
                
        System.out.print(&quot;Please enter a number: &quot;);
        currency = scan.nextFloat(); // read currency
        
   …</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/printf?rev=1408637388&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-08-21T18:09:48+02:00</dc:date>
        <title>printf</title>
        <link>https://code-reference.com/c/stdio.h/printf?rev=1408637388&amp;do=diff</link>
        <description>printf


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

int printf ( const char * restrict format, ... );


Arguments

The function printf prints format to STDOUT


Code    Description

%c 	character value

%s 	string of characters

%d 	signed integer

%i 	signed integer

%f 	floating point value

%e 	scientific notation, with a lowercase “e”

%E 	scientific notation, with a uppercase “E”

%g 	use %e or %f

%G 	use %E or %f 

%o 	octa…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-18T09:11:21+02:00</dc:date>
        <title>for</title>
        <link>https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff</link>
        <description>for ( init; condition; increment ){
    statements;    
    }


description of for

a for loop do statements while the condition is true/untrue, the increment counts the loop, it is possible to use more than 1 condition in the for loop

example 1 of for in java




package codereferececomjava;
 
public class CodeRefereceComJava {
 
 
    public static void main(String[] args) {
        
        int myOtherCount=5;
 
 
        for (int i = 0; i &lt;= myOtherCount; i++) {
            System.out.print…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_init?rev=1359920158&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-03T20:35:58+02:00</dc:date>
        <title>mysql_init</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_init?rev=1359920158&amp;do=diff</link>
        <description>MYSQL *mysql_init(MYSQL *mysql)


description of mysql_init

allocates / initializes a MYSQL object and returns a new object


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

#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
 
int main( void ){
char host[20];
char user[20];
char pass[20];
 
my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;root&quot;);
sprintf(pass,&quot;yourpass&quot;);
 
if (my == NULL ) {
printf(&quot;Cant initalisize MySQL\n&quot;);
…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_escape_string?rev=1362010868&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-28T01:21:08+02:00</dc:date>
        <title>mysql_escape_string</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_escape_string?rev=1362010868&amp;do=diff</link>
        <description>unsigned long mysql_escape_string(MYSQL *mysql, char *to, const char *from, unsigned long length)


description of mysql_escape_string

mysql_escape_string escape a mysql string

” will be escaped
; will not be escaped

! mysql_escape_string is outdated use mysql_real_escape_string instead !</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setcolor?rev=1430935280&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-05-06T20:01:20+02:00</dc:date>
        <title>setcolor</title>
        <link>https://code-reference.com/c/graphics.h/setcolor?rev=1430935280&amp;do=diff</link>
        <description></description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextlong?rev=1365581680&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:14:40+02:00</dc:date>
        <title>nextLong()</title>
        <link>https://code-reference.com/java/util/scanner/nextlong?rev=1365581680&amp;do=diff</link>
        <description>public long nextLong()


return long scanned from the input

example nextLong() 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); 
        
        long currency;
                
        System.out.print(&quot;Please enter a number: &quot;);
        currency = scan.nextLong(); // read keyboard buffer
        
…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/imagesize?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>imagesize</title>
        <link>https://code-reference.com/c/graphics.h/imagesize?rev=1708041951&amp;do=diff</link>
        <description>imagesize

Syntax of imagesize


#include &lt;graphics.h&gt;
unsigned imagesize(int left, int top, int right, int bottom);
  

Description of imagesize


imagesize determines the size of the memory area required to store a bit
image. If the size required for the selected image is greater than or
equal to 64K - 1 bytes, imagesize returns 0xFFFF (-1).</description>
    </item>
    <item rdf:about="https://code-reference.com/java/control_structures/if?rev=1365582955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:35:55+02:00</dc:date>
        <title>if</title>
        <link>https://code-reference.com/java/control_structures/if?rev=1365582955&amp;do=diff</link>
        <description>if ( condition == true ){
    command;    
 }


check if a condition is true or false

example of if in java




package plausibilitycheck;

import java.util.Scanner;

public class Plausibilitycheck{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        int celsius;
        double fahrenheit;

        Scanner scan = new Scanner(System.in);

        System.out.print(&quot;Please type in Celsius : &quot;);
        celsius = scan.nextInt();

    …</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgpoint?rev=1708042343&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:23+02:00</dc:date>
        <title>valueWithCGPoint</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgpoint?rev=1708042343&amp;do=diff</link>
        <description>valueWithCGPoint

    

+ (NSValue *)valueWithCGPoint:(CGPoint)point;
 


Creates and returns an NSValue object that contains the value of a CGPoint.

Return Value
- A new NSValue object.

ObjC Sourcecode Example



    // ** Sample datatype **
    CGPoint aPoint = CGPointMake(150.0f, 200.0f);
    
    // ** Create nsvalue object **
    NSValue *cgPointValue = [NSValue valueWithCGPoint:aPoint];
    
    // ** Output **
    NSLog(@&quot;%@&quot;, cgPointValue);</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/c/string.h/strxfrm?rev=1361066569&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-17T03:02:49+02:00</dc:date>
        <title>strxfrm</title>
        <link>https://code-reference.com/c/string.h/strxfrm?rev=1361066569&amp;do=diff</link>
        <description>#include &lt;stdlib.h&gt;
size_t strxfrm(char *str1, const char *str2, size_t n);


description of strxfrm

The function strxfrm () transforms a null-terminated C string according to local settings. Thus the string can be safely compared using strcmp () with another. The transformed string is stored in a new string.</description>
    </item>
    <item rdf:about="https://code-reference.com/java/variables/array?rev=1366179085&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-17T08:11:25+02:00</dc:date>
        <title>Arrays in Java</title>
        <link>https://code-reference.com/java/variables/array?rev=1366179085&amp;do=diff</link>
        <description>an array, it is a object variable (box,container), which is a variable in a position to take up more than one object of the same type and manage it

example of arrays in java


package arrays;

public class Arrays {

    public static void main(String[] args) {
           int[] digits1; // Reference Variable
           int[] digits2= new int[5]; // Definition with 5 x Integer
           int[] digits3= {1,2,3,4,5}; // Definie with initialization ( 5 Integer)
           
           // pass Element…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/io/printstream/append?rev=1708042322&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:02+02:00</dc:date>
        <title>append</title>
        <link>https://code-reference.com/java/io/printstream/append?rev=1708042322&amp;do=diff</link>
        <description>Appends a CharSequence


append(char): PrintStream
append(CharSequence): PrintStream
append(CharSequence, int start, int end): PrintStream

return value: PrintStream


Language Example



        int i = 42;
        StringBuffer buf = new StringBuffer(42);
        buf.append(i);
        buf.append(&quot; is a answer to a nice question&quot;);
        System.out.println(buf);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgsize?rev=1708042343&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:23+02:00</dc:date>
        <title>valueWithCGSize</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgsize?rev=1708042343&amp;do=diff</link>
        <description>valueWithCGSize

    

+ (NSValue *)valueWithCGSize:(CGSize)size;
 


Creates and returns an NSValue object that contains the value of a CGSize.

Return Value
- A new NSValue object.

ObjC Sourcecode Example



    // ** Sample datatype **
    CGSize aSize = CGSizeMake(150.0f, 200.0f);
    
    // ** Add the value to nsvalue object **
    NSValue *cgSizeValue = [NSValue valueWithCGSize:aSize];
    
    // ** Output **
    NSLog(@&quot;%@&quot;, cgSizeValue);</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgrect?rev=1708042343&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:23+02:00</dc:date>
        <title>valueWithCGRect</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsvalue.h/valuewithcgrect?rev=1708042343&amp;do=diff</link>
        <description>valueWithCGRect

    

+ (NSValue *)valueWithCGRect:(CGRect)rect;
 


Creates and returns an NSValue object that contains the value of a CGRect.

Return Value
- A new NSValue object.

ObjC Sourcecode Example



    //** Sample datatype **
    CGRect aRect = CGRectMake(0.0f, 0.0f, 150.0f, 200.0f);
    
    // ** Create nsvalue object **
    NSValue *cgRectValue = [NSValue valueWithCGRect:aRect];
    
    // ** Output **
    NSLog(@&quot;%@&quot;, cgRectValue);</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/objective-c/foundation.framework/nsstring.h/stringbyappendingstring?rev=1708042344&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:24+02:00</dc:date>
        <title>stringByAppendingString</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsstring.h/stringbyappendingstring?rev=1708042344&amp;do=diff</link>
        <description>stringByAppendingString

    
    -(NSString *)stringByAppendingString:(NSString *)aString;    


Returns a new string made by appending a given string to the receiver.

ObjC Sourcecode Example

     
  NSString *cycle=@&quot;Pass&quot;;
        
        for(int a=0; a&lt;5; a++)
        {

            NSString *intValue=[NSString stringWithFormat:@&quot;%i&quot;, a];
            
            cycle=[cycle stringByAppendingString:intValue];
            
            NSLog(@&quot;%@&quot;, cycle);

        }</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/string/toarray?rev=1366267847&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-18T08:50:47+02:00</dc:date>
        <title>toCharArray</title>
        <link>https://code-reference.com/java/lang/string/toarray?rev=1366267847&amp;do=diff</link>
        <description>public char[] toCharArray()


description of toCharArray()

converts a string to a new character array

example of toCharArray in java


package codereferececomjava;

public class CodeRefereceComJava {


    public static void main(String[] args) {
        String str = &quot;some Text&quot;;
        char[] text;
       
        
        System.out.println(str); // print the String

        text = str.toCharArray();
        for (int i = 0; i &lt;= text.length - 1; i++) {
            
        System.out.printl…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/control_structures/else?rev=1708041838&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:03:58+02:00</dc:date>
        <title>else</title>
        <link>https://code-reference.com/java/control_structures/else?rev=1708041838&amp;do=diff</link>
        <description>if ( condition == true ){
    command;    
 } else {
      // if the &quot;if&quot; condition false
      command;
      }


check if a condition is true or false

example of else




package plausibilitycheck;

import java.util.Scanner;

public class Plausibilitycheck{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        int celsius;
        double fahrenheit;

        Scanner scan = new Scanner(System.in);

        System.out.print(&quot;Please …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setbkcolor?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>setbkcolor</title>
        <link>https://code-reference.com/c/graphics.h/setbkcolor?rev=1708041955&amp;do=diff</link>
        <description>setbkcolor

Syntax of setbkcolor


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

Description of setbkcolor


setbkcolor sets the background to the color specified by color. The
argument color can be a name or a number as listed below. (These symbolic
names are defined in graphics.h.)
Name   Value
BLACK  0
BLUE   1
GREEN  2
CYAN   3
RED    4
MAGENTA5
BROWN  6
LIGHTGRAY    7
DARKGRAY     8
LIGHTBLUE    9
LIGHTGREEN   10
LIGHTCYAN    11
LIGHTRED     12
LIGHTMAGENTA 13
YELLOW 14
WHITE  15
Fo…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h/sizeof?rev=1708041890&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:50+02:00</dc:date>
        <title>sizeof</title>
        <link>https://code-reference.com/c/stdlib.h/sizeof?rev=1708041890&amp;do=diff</link>
        <description>“New”

sizeof


#include &lt;stdlib.h&gt;

    int sizeof(VALUE);


    sizeof operator returns the number of bytes to be reserved for a variable or a data type.

C Sourcecode Example


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


int main(void){

printf(&quot;int:         %d bytes\n&quot;, sizeof(int) );
printf(&quot;Hello World: %d bytes\n&quot;, sizeof(&quot;Hello World&quot;) );

return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/string.h/strrchr?rev=1361062063&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-17T01:47:43+02:00</dc:date>
        <title>strrchr</title>
        <link>https://code-reference.com/c/string.h/strrchr?rev=1361062063&amp;do=diff</link>
        <description>strrchr


#include &lt;stdlib.h&gt;
char *strrchr(const char *str, int c);


description of strrchr

strrchr () is a string function that finds the last occurrence of a character in a string. As a result, the pointer comes to this character or the null pointer if this character is not found.</description>
    </item>
    <item rdf:about="https://code-reference.com/playground/c/stdio.h/printf?rev=1501372178&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-07-30T01:49:38+02:00</dc:date>
        <title>printf</title>
        <link>https://code-reference.com/playground/c/stdio.h/printf?rev=1501372178&amp;do=diff</link>
        <description>printf


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

int printf ( const char * restrict format, ... );


Arguments

The function printf prints format to STDOUT


Code    Description

%c 	character value

%s 	string of characters

%d 	signed integer

%i 	signed integer

%f 	floating point value

%e 	scientific notation, with a lowercase “e”

%E 	scientific notation, with a uppercase “E”

%g 	use %e or %f

%G 	use %E or %f 

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

Syntax of setallpalette


#include &lt;graphics.h&gt;
void setallpalette(struct palettetype *palette);
  

Description of setallpalette


setallpalette sets the current palette to the values given in the
palettetype structure pointed to by palette.
You can partially (or completely) change the colors in the EGA/VGA
palette with setallpalette.
The MAXCOLORS constant and the palettetype structure used by
setallpalette are defined in graphics.h as follows:
#define MAXCOLORS  15

struct pale…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsdictionary.h/allkeys?rev=1708042339&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:19+02:00</dc:date>
        <title>allKeys</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsdictionary.h/allkeys?rev=1708042339&amp;do=diff</link>
        <description>allKeys

    

- (NSArray *)allKeys
 


Returns a new array containing the dictionary’s keys, or an empty array if the dictionary has no entries.

Return Value
- NSArray

ObjC Sourcecode Example



    // ** Init dictionary with entries
    NSDictionary *myDictionary = [[NSDictionary alloc]initWithObjectsAndKeys:@&quot;value1&quot;, @&quot;key1&quot;, @&quot;value2&quot;, @&quot;key2&quot;, nil];
    
    NSArray *keysArray = [myDictionary allKeys];
    
    // ** Output dictionary keys
    NSLog(@&quot;myDictionary all keys: %@&quot;, keysArra…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/putimage?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>putimage</title>
        <link>https://code-reference.com/c/graphics.h/putimage?rev=1708041953&amp;do=diff</link>
        <description>putimage

Syntax of putimage


#include &lt;graphics.h&gt;
void putimage(int left, int top, void *bitmap, int op);
  

Description of putimage


putimage puts the bit image previously saved with getimage back onto the
screen, with the upper left corner of the image placed at (left,top).
bitmap points to the area in memory where the source image is stored.
The op parameter to putimage specifies a combination operator that
controls how the color for each destination pixel onscreen is computed,
based on …</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextdouble?rev=1365581618&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:13:38+02:00</dc:date>
        <title>nextDouble()</title>
        <link>https://code-reference.com/java/util/scanner/nextdouble?rev=1365581618&amp;do=diff</link>
        <description>public double nextDouble()


double scanned from the input

example nextDouble 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;
                
        System.out.print(&quot;Please enter the amount (with d…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/util/scanner/nextline?rev=1365581665&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:14:25+02:00</dc:date>
        <title>nextLine()</title>
        <link>https://code-reference.com/java/util/scanner/nextline?rev=1365581665&amp;do=diff</link>
        <description>public String nextLine()


return the scanned content from the input

example nextLine() 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); 
        
        String line;
                
        System.out.print(&quot;Please enter what you want: &quot;);
        line = scan.nextLine(); // read keyboard buffer
 …</description>
    </item>
</rdf:RDF>
