<?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-26T05:56:11+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/loops/do?rev=1515738547&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/dowhile?rev=1708041848&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/lua/codea/stargenerator/main.lua?rev=1358996634&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/control_structures/do?rev=1708041885&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getch?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/constants/progmem?rev=1708041856&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/control_structures?rev=1358463006&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/control_structures?rev=1371218987&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/cpp/control_structures/do?rev=1708041872&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/arduino/control_structures/switchcase?rev=1708041848&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/else?rev=1708041848&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/graphics.h/registermousehandler?rev=1708041956&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/graphics.h/readimagefile?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/kbhit?rev=1708041948&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/graphics.h/printimage?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/delay?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/mousey?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setfillstyle?rev=1708041947&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/arduino/advanced_io/shiftout?rev=1360951161&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/swapbuffers?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/mousex?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/data_types/array?rev=1708041851&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/arduino/analog_io/analogwrite?rev=1360951690&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/variable_scope_and_qualifiers/variabledeclaration?rev=1360957675&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/keywords?rev=1358818247&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/showerrorbox?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/variables?rev=1401900353&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/control_structures/switch?rev=1365602292&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/utilities/sizeof?rev=1708041864&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/textheight?rev=1365186525&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxy?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/closegraph?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getarccoords?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getpalette?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/fillpoly?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxmode?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/control_structures/while?rev=1708041976&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/c/graphics.h/setlinestyle?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/time/delay?rev=1708041862&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/arduino/control_structures/if?rev=1708041848&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/external_interrupts/attachinterrupt?rev=1708041866&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmoderange?rev=1708041952&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/graphics.h/lineto?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxwidth?rev=1708041950&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/c/graphics.h/bar3d?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/bar?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdarg.h/va_copy?rev=1708041946&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setgraphbufsize?rev=1708041950&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/arduino/math/map?rev=1708041860&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/arduino/data_types/char?rev=1708041851&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getpalettesize?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/cprintf?rev=1439031039&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/bash/examples/iisscan?rev=1357809369&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/control_structures/while?rev=1361019359&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/continue?rev=1708041847&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/data_types/stringobject?rev=1708041852&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getlinesettings?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/moverel?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/installuserdriver?rev=1708041954&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/arduino/time/millis?rev=1708041862&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getpixel?rev=1439308760&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxx?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/rectangle?rev=1708041949&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/c/graphics.h/getmouseclick?rev=1708041947&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/graphics.h/getwindowheight?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/settextjustify?rev=1708041947&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/graphics.h/line?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/detectgraph?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getdrivername?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/textwidth?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setaspectratio?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getdisplaycolor?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getcolor?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setgraphmode?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getviewsettings?rev=1708041948&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/circle?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/grapherrormsg?rev=1708041951&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/putpixel?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getgraphmode?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/graphdefaults?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setrgbpalette?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/gety?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setpalette?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmodename?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/sector?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxheight?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/examples/indexpath_for_custom_cell?rev=1708041979&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/loops/while?rev=1365667420&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/wiki/dokuwiki?rev=1708040894&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getx?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/control_structures/while?rev=1708041872&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getmaxcolor?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/constants/integerconstants?rev=1708041856&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/data_types/string?rev=1708041852&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setfillpattern?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/fillellipse?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setwritemode?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/ellipse?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getdefaultpalette?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/linerel?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setcurrentwindow?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/moveto?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getfillpattern?rev=1708041954&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/drawpoly?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/conio.h/cputs?rev=1359922049&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/c/graphics.h/outtext?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getfillsettings?rev=1708041953&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/outtextxy?rev=1708041951&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/graphics.h/pieslice?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/clearviewport?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getwindowwidth?rev=1708041947&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setmousequeuestatus?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/time.h/clock?rev=1708041884&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/while?rev=1708041848&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/cleardevice?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getcurrentwindow?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/floodfill?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/arc?rev=1708041954&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setvisualpage?rev=1708041955&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getbkcolor?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/editing_the_value_of_variables?rev=1392915540&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getaspectration?rev=1708041949&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/restorecrtmode?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getvisualpage?rev=1708041956&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/io/printwriter?rev=1708041840&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/boolean_operators/boolean?rev=1708041859&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/setusercharsize?rev=1708041957&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getimage?rev=1708041958&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/gettextsettings?rev=1708041950&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/graphics.h/setactivepage?rev=1708041948&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/c/graphics.h/getactivepage?rev=1708041952&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/break?rev=1708041848&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/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/java/loops/do?rev=1515738547&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-01-12T07:29:07+02:00</dc:date>
        <title>do</title>
        <link>https://code-reference.com/java/loops/do?rev=1515738547&amp;do=diff</link>
        <description>do {
 command;
} while (condition);



a do loop will run while a condition is false

example of do loop in java


package codereferececomjava;

public class CodeRefereceComJava {
 
    public static void main(String[] args) {
    
        int i=4;
        
        do {
         i++;
        } while(i==4);
        
        System.out.println(&quot;i is :&quot; + i );
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures/dowhile?rev=1708041848&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:08+02:00</dc:date>
        <title>do - while</title>
        <link>https://code-reference.com/arduino/control_structures/dowhile?rev=1708041848&amp;do=diff</link>
        <description>The do loop works in the same manner as the while loop, with the exception that the condition is tested at the end of the loop, so the do loop will always run at least once.


do
{
    // statement block
} while (test condition);


Example


do
{
  delay(50);          // wait for sensors to stabilize
  x = readSensors();  // check the sensors

} while (x &lt; 100);</description>
    </item>
    <item rdf:about="https://code-reference.com/lua/codea/stargenerator/main.lua?rev=1358996634&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-24T04:03:54+02:00</dc:date>
        <title>lua:codea:stargenerator:main.lua</title>
        <link>https://code-reference.com/lua/codea/stargenerator/main.lua?rev=1358996634&amp;do=diff</link>
        <description>-- stars
function setup()   
    displayMode(FULLSCREEN)
    createstars()
    checkagain = false
end

function createstars()
    stars = {}
    for i = 1,175 do 
        --rx = math.random(1,1200)
       -- ry= math.random(1,800)
        s= Star(true)
        --u = { x=rx, y=ry}
      table.insert(stars,s)
    end   
    for i = 1,50 do 
        --rx = math.random(1,1200)
       -- ry= math.random(1,800)
        s= Star(false)
        --u = { x=rx, y=ry}
      table.insert(stars,s)
    end  
  …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/control_structures/do?rev=1708041885&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:45+02:00</dc:date>
        <title>do</title>
        <link>https://code-reference.com/c/control_structures/do?rev=1708041885&amp;do=diff</link>
        <description>do
  Syntax 
  do instruction while ( condition );
C Sourcecode Example


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


int main( void ) {
int i;
    
    do
        printf(&quot;Hello World no %i\n&quot;,i);
    while (i++);
    
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getch?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getch</title>
        <link>https://code-reference.com/c/graphics.h/getch?rev=1708041957&amp;do=diff</link>
        <description>getch

Syntax of getch


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

Description of getch


The getch 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 one character from the keyboard and returns its ASCII
value (without waiting for a return key). In order to work, the user must
click in the graphics window (i.e., the Windows focus must be in the
graphics window). For special keys, the getch functio…</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/constants/progmem?rev=1708041856&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:16+02:00</dc:date>
        <title>PROGMEM</title>
        <link>https://code-reference.com/arduino/constants/progmem?rev=1708041856&amp;do=diff</link>
        <description>Store data in flash (program) memory instead of SRAM.  There's a description of the various  types of memory available on an Arduino board.

The PROGMEM keyword is a variable modifier, it should be used only with the datatypes defined in pgmspace.h. It tells the compiler “put this information into flash memory”, instead of into SRAM, where it would normally go.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/control_structures?rev=1358463006&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-17T23:50:06+02:00</dc:date>
        <title>control structures Overview</title>
        <link>https://code-reference.com/c/control_structures?rev=1358463006&amp;do=diff</link>
        <description>control structures Overview
 Name                 Description              break break  case case  continue continue  default default  do do  else else  for for  goto goto  if if  return return  switch switch  while while 
automatically generated overview ...

Change this page if you have a better description</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/control_structures?rev=1371218987&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-06-14T16:09:47+02:00</dc:date>
        <title>control structures Overview</title>
        <link>https://code-reference.com/cpp/control_structures?rev=1371218987&amp;do=diff</link>
        <description>control structures Overview
 Name                 Description              break break  continue continue  do do  goto goto  if if  return return  while while  Switchused for finding the specific case of a set of scenarios 
automatically generated overview ...

Change this page if you have a better description</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/cpp/control_structures/do?rev=1708041872&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:32+02:00</dc:date>
        <title>do</title>
        <link>https://code-reference.com/cpp/control_structures/do?rev=1708041872&amp;do=diff</link>
        <description>do
  Syntax 
  do instruction while ( condition );
cpp Sourcecode Example


#include &lt;iostream&gt; /* including standard library */

using namespace std;

int main( void ) {
int i;
    
    do
        cout &lt;&lt; &quot;Hello World no &quot; &lt;&lt; i &lt;&lt; endl;
    while (i++);
    
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/arduino/control_structures/switchcase?rev=1708041848&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:08+02:00</dc:date>
        <title>switch / case statements</title>
        <link>https://code-reference.com/arduino/control_structures/switchcase?rev=1708041848&amp;do=diff</link>
        <description>Like if statements, switch...case controls the flow of programs by allowing programmers to specify different code that should be executed in various conditions.  In particular, a switch statement compares the value of a variable to the values specified in case statements.  When a case statement is found whose value matches that of the variable, the code in that case statement is run.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures/else?rev=1708041848&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:08+02:00</dc:date>
        <title>if / else</title>
        <link>https://code-reference.com/arduino/control_structures/else?rev=1708041848&amp;do=diff</link>
        <description>if/else allows greater control over the flow of code than the basic if statement, by allowing multiple tests to be grouped together. For example, an analog input could be tested and one action taken if the input was less than 500, and another action taken if the input was 500 or greater. The code would look like this:</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/graphics.h/registermousehandler?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>registermousehandler</title>
        <link>https://code-reference.com/c/graphics.h/registermousehandler?rev=1708041956&amp;do=diff</link>
        <description>registermousehandler

Example of registermousehandler


/* mouse example */
#include &quot;graphics.h&quot;

// The click_handler will be called whenever the left mouse button is
// clicked. It checks copies the x,y coordinates of the click to
// see if the click was on a red pixel. If so, then the boolean
// variable red_clicked is set to true. Note that in general
// all handlers should be quick. If they need to do more than a little
// work, they should set a variable that will trigger the work going,
…</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/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/graphics.h/initwindow?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>initwindow</title>
        <link>https://code-reference.com/c/graphics.h/initwindow?rev=1708041948&amp;do=diff</link>
        <description>initwindow

Syntax of initwindow


#include &quot;graphics.h&quot;
int initwindow(int width, int height, const char* title=&quot;Windows BGI&quot;,
int left=0, int top=0, bool dbflag=false, closeflag=true);
  

Description of initwindow


The initwindow function is available in the winbgim implementation of BGI
graphics. You do not need to include conio.h; just include graphics.h.
The function initializes the graphics system by opening a graphics window
of the specified size. The first two parameters (width and hei…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/kbhit?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>kbhit</title>
        <link>https://code-reference.com/c/graphics.h/kbhit?rev=1708041948&amp;do=diff</link>
        <description>kbhit

Syntax of kbhit


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

Description of kbhit


The kbhit function is available in the winbgim implementation of BGI
graphics. You do not need to include conio.h; just include graphics.h.
The function returns true (non-zero) if there is a character in the input
buffer ready to read. Otherwise it returns false. In order to work, the
user must click in the graphics window (i.e., the Windows focus must be
in the graphics window).</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/graphics.h/printimage?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>printimage</title>
        <link>https://code-reference.com/c/graphics.h/printimage?rev=1708041947&amp;do=diff</link>
        <description>printimage

Syntax of printimage


#include &quot;graphics.h&quot;
void printimage(
    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/graphics.h/delay?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>delay</title>
        <link>https://code-reference.com/c/graphics.h/delay?rev=1708041949&amp;do=diff</link>
        <description>delay

Syntax of delay


#include &quot;graphics.h&quot;
void delay(int millisec);
  

Description of delay


The delay function is available in the winbgim implementation of BGI
graphics. You do not need to include conio.h; just include graphics.h.
The function pauses the computation for the the specified number of
milliseconds.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/mousey?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>mousey</title>
        <link>https://code-reference.com/c/graphics.h/mousey?rev=1708041951&amp;do=diff</link>
        <description>mousey

Syntax of mousey


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

Description of mousey


The mousey function is available in the winbgim implementation of BGI
graphics. It returns the most recent y coordinate of the mouse within the
graphics window. Y-coordinates start with 0 at the top edge of the window
and increase to getmaxy( ) at the bottom edge of the window.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setfillstyle?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>setfillstyle</title>
        <link>https://code-reference.com/c/graphics.h/setfillstyle?rev=1708041947&amp;do=diff</link>
        <description>setfillstyle

Syntax of setfillstyle


#include &lt;graphics.h&gt;
void setfillstyle(int pattern, int color);
  

Description of setfillstyle


setfillstyle sets the current fill pattern and fill color. To set a user-
defined fill pattern, do not give a pattern of 12 (USER_FILL) to
setfillstyle; instead, call setfillpattern.
If invalid input is passed to setfillstyle, graphresult returns -1
(grError), and the current fill pattern and fill color remain unchanged.
Note: The EMPTY_FILL style is like a so…</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/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/c/graphics.h/swapbuffers?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>swapbuffers</title>
        <link>https://code-reference.com/c/graphics.h/swapbuffers?rev=1708041948&amp;do=diff</link>
        <description>swapbuffers

Syntax of swapbuffers


#include &quot;graphics.h&quot;
void swapbuffers( );
  

Description of swapbuffers

&lt;code c&gt;
The swapbuffers function is available in the winbgim implementation of
BGI graphics. You do not need to include conio.h; just include
graphics.h. The function swaps the roles of the current active and the
current visual graphics buffers. It is equivalent to these statements:</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/mousex?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>mousex</title>
        <link>https://code-reference.com/c/graphics.h/mousex?rev=1708041952&amp;do=diff</link>
        <description>mousex

Syntax of mousex


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

Description of mousex


The mousex function is available in the winbgim implementation of BGI
graphics. It returns the most recent x coordinate of the mouse within the
graphics window. X-coordinates start with 0 at the left edge of the
window and increase to getmaxx( ) at the right edge of the window.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/data_types/array?rev=1708041851&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:11+02:00</dc:date>
        <title>Arrays</title>
        <link>https://code-reference.com/arduino/data_types/array?rev=1708041851&amp;do=diff</link>
        <description>An array is a collection of variables that are accessed with an index number. Arrays in the C programming language, on which Arduino is based, can be complicated, but using simple arrays is relatively straightforward.

Creating (Declaring) an Array

All of the methods below are valid ways to create (declare) an array.</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/arduino/analog_io/analogwrite?rev=1360951690&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-15T19:08:10+02:00</dc:date>
        <title>analogWrite()</title>
        <link>https://code-reference.com/arduino/analog_io/analogwrite?rev=1360951690&amp;do=diff</link>
        <description>Description

Writes an analog value ( PWM wave) to a pin.  Can be used to light a LED at varying brightnesses or drive a motor at various speeds.  After a call to analogWrite(), the pin will generate a steady square wave of the specified duty cycle until the next call to analogWrite() (or a call to digitalRead() or digitalWrite() on the same pin).  The frequency of the PWM signal is approximately 490 Hz.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/variable_scope_and_qualifiers/variabledeclaration?rev=1360957675&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-15T20:47:55+02:00</dc:date>
        <title>Variables</title>
        <link>https://code-reference.com/arduino/variable_scope_and_qualifiers/variabledeclaration?rev=1360957675&amp;do=diff</link>
        <description>A variable is a way of naming and storing a value for later use by the program, such as data from a sensor or an intermediate value used in a calculation.

Declaring Variables

Before they are used, all variables have to be declared. Declaring a variable means defining its type, and optionally, setting an initial value (initializing the variable). Variables do not have to be initialized (assigned a value) when they are declared, but it is often useful.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/keywords?rev=1358818247&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-22T02:30:47+02:00</dc:date>
        <title>Keywords in C 89/99</title>
        <link>https://code-reference.com/c/keywords?rev=1358818247&amp;do=diff</link>
        <description>C89 Keywords

	*  auto
	*  break
	*  case
	*  char
	*  const
	*  continue
	*  default
	*  do
	*  double
	*  else
	*  enum
	*  extern
	*  float
	*  for
	*  goto
	*  if
	*  int
	*  long
	*  register
	*  return
	*  short
	*  signed
	*  sizeof
	*  static
	*  struct
	*  switch
	*  typedef
	*  union
	*  unsigned
	*  void
	*  volatile
	*  while</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/showerrorbox?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>showerrorbox</title>
        <link>https://code-reference.com/c/graphics.h/showerrorbox?rev=1708041954&amp;do=diff</link>
        <description>showerrorbox

Syntax of showerrorbox


#include &quot;graphics.h&quot;
void showerrorbox(const char* message=NULL);
  

Description of showerrorbox


The showerrorbox function is available in the winbgim implementation of
BGI graphics. You do not need to include conio.h; just include
graphics.h. The function opens a windows error message box with the
specified message (or a standard message if the message parameter is
NULL). The message box waits for the user to click on OK button before
showerrorbox retu…</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/variables?rev=1401900353&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-06-04T18:45:53+02:00</dc:date>
        <title>cpp:variables</title>
        <link>https://code-reference.com/cpp/variables?rev=1401900353&amp;do=diff</link>
        <description>Variables

Variables are the means of storing data in a program. Say you want to make a calculator, you need to use variables. Say you want to make a program that takes in a word and then modifies it, you need to use variables. Variables can be created and “destroyed”(deconstructing comes later on so don't get your hopes up). The value or information that they store can be changed and in some cases, that you make it so, cannot be. Except for the syntax of the language, you are in control!</description>
    </item>
    <item rdf:about="https://code-reference.com/c/control_structures/switch?rev=1365602292&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T15:58:12+02:00</dc:date>
        <title>switch</title>
        <link>https://code-reference.com/c/control_structures/switch?rev=1365602292&amp;do=diff</link>
        <description>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/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>
    <item rdf:about="https://code-reference.com/c/graphics.h/textheight?rev=1365186525&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-05T20:28:45+02:00</dc:date>
        <title>textheight</title>
        <link>https://code-reference.com/c/graphics.h/textheight?rev=1365186525&amp;do=diff</link>
        <description>textheight

output of textheight example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxy?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>getmaxy</title>
        <link>https://code-reference.com/c/graphics.h/getmaxy?rev=1708041953&amp;do=diff</link>
        <description>getmaxy

Syntax of getmaxy


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

Description of getmaxy


getmaxy returns the maximum (screen-relative) y value for the current
graphics driver and mode.
For example, on a CGA in 320*200 mode, getmaxy returns 199. getmaxy is
invaluable for centering, determining the boundaries of a region
onscreen, and so on.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/closegraph?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>closegraph</title>
        <link>https://code-reference.com/c/graphics.h/closegraph?rev=1708041951&amp;do=diff</link>
        <description>closegraph

Syntax of closegraph


#include &lt;graphics.h&gt;
void closegraph(int wid=ALL_WINDOWS);
  

Description of closegraph


closegraph deallocates all memory allocated by the graphics system, then
restores the screen to the mode it was in before you called initgraph.
(The graphics system deallocates memory, such as the drivers, fonts, and
an internal buffer, through a call to _graphfreemem.)</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getarccoords?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>getarccoords</title>
        <link>https://code-reference.com/c/graphics.h/getarccoords?rev=1708041956&amp;do=diff</link>
        <description>getarccoords

Syntax of getarccoords


#include &lt;graphics.h&gt;
void getarccoords(struct arccoordstype *arccoords);
  

Description of getarccoords


getarccoords fills in the arccoordstype structure pointed to by arccoords
with information about the last call to arc. The arccoordstype structure
is defined in graphics.h as follows:
struct arccoordstype {
   int x, y;
   int xstart, ystart, xend, yend;
};
The members of this structure are used to specify the center point (x,y),
the starting position…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getpalette?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>getpalette</title>
        <link>https://code-reference.com/c/graphics.h/getpalette?rev=1708041958&amp;do=diff</link>
        <description>getpalette

Syntax of getpalette


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

Description of getpalette


getpalette fills the palettetype structure pointed to by palette with
information about the current palette's size and colors.
The MAXCOLORS constant and the palettetype structure used by getpalette
are defined in graphics.h as follows:
#define MAXCOLORS  15

struct palettetype {
   unsigned char size;
   signed char colors[MAXCOLORS + 1];
};
size gives the numbe…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/fillpoly?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>fillpoly</title>
        <link>https://code-reference.com/c/graphics.h/fillpoly?rev=1708041948&amp;do=diff</link>
        <description>fillpoly

Syntax of fillpoly


#include &lt;graphics.h&gt;
void fillpoly(int numpoints, int *polypoints);
  

Description of fillpoly


fillpoly draws the outline of a polygon with numpoints points in the
current line style and color (just as drawpoly does), then fills the
polygon using the current fill pattern and fill color.
polypoints points to a sequence of (numpoints * 2) integers. Each pair of
integers gives the x- and y-coordinates of a point on the polygon.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxmode?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getmaxmode</title>
        <link>https://code-reference.com/c/graphics.h/getmaxmode?rev=1708041957&amp;do=diff</link>
        <description>getmaxmode

Syntax of getmaxmode


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

Description of getmaxmode


getmaxmode lets you find out the maximum mode number for the currently
loaded driver, directly from the driver. This gives it an advantage over
getmoderange, which works for Borland drivers only. The minimum mode is
0.</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/control_structures/while?rev=1708041976&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:16+02:00</dc:date>
        <title>while</title>
        <link>https://code-reference.com/objective-c/control_structures/while?rev=1708041976&amp;do=diff</link>
        <description>syntax



while (condition is true/untrue) {
    statement;
}

or 

while ( condition == true ) {
    do something until condition untrue
    }


while example objective c


        NSInteger i=0;
         while (i &lt; 42) {
                i++;
                if (i==42) NSLog(@&quot;whoooha &quot;);
        }</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/c/graphics.h/setlinestyle?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>setlinestyle</title>
        <link>https://code-reference.com/c/graphics.h/setlinestyle?rev=1708041950&amp;do=diff</link>
        <description>setlinestyle

Syntax of setlinestyle


#include &lt;graphics.h&gt;
void setlinestyle(int linestyle, unsigned upattern, int thickness);
  

Description of setlinestyle


setlinestyle sets the style for all lines drawn by line, lineto,
rectangle, drawpoly, and so on.
The linesettingstype structure is defined in graphics.h as follows:
struct linesettingstype {
   int linestyle;
   unsigned upattern;
   int thickness;
};
linestyle specifies in which of several styles subsequent lines will be
drawn (such a…</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/time/delay?rev=1708041862&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:22+02:00</dc:date>
        <title>delay()</title>
        <link>https://code-reference.com/arduino/time/delay?rev=1708041862&amp;do=diff</link>
        <description>Description

Pauses the program for the amount of time (in miliseconds) specified as parameter.   (There are 1000 milliseconds in a second.)

Syntax

delay(ms)

Parameters

ms: the number of milliseconds to pause (unsigned long)

Returns

nothing

Example


int ledPin = 13;                 // LED connected to digital pin 13

void setup()
{
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
}

void loop()
{
  digitalWrite(ledPin, HIGH);   // sets the LED on
  delay(1000);          …</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/arduino/control_structures/if?rev=1708041848&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:08+02:00</dc:date>
        <title>if  (conditional)  and   ==,  !=,   (comparison operators)</title>
        <link>https://code-reference.com/arduino/control_structures/if?rev=1708041848&amp;do=diff</link>
        <description>if, which is used in conjunction with a comparison operator, tests whether a certain condition has been reached, such as an input being above a certain number. The format for an if test is:

if (someVariable &gt; 50)
{
  // do something here
}

The program tests to see if someVariable is greater than 50. If it is, the program takes a particular action. Put another way, if the statement in parentheses is true, the statements inside the brackets are run. If not, the program skips over the code.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/external_interrupts/attachinterrupt?rev=1708041866&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:26+02:00</dc:date>
        <title>attachInterrupt()</title>
        <link>https://code-reference.com/arduino/external_interrupts/attachinterrupt?rev=1708041866&amp;do=diff</link>
        <description>Description

Specifies a function to call when an external interrupt occurs.  Replaces any previous function that was attached to the interrupt.  Most Arduino boards have two external interrupts: numbers 0 (on digital pin 2) and 1 (on digital pin 3). The table below shows the available interrupt pins on various boards.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmoderange?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>getmoderange</title>
        <link>https://code-reference.com/c/graphics.h/getmoderange?rev=1708041952&amp;do=diff</link>
        <description>getmoderange

Syntax of getmoderange


#include &lt;graphics.h&gt;
void getmoderange(int graphdriver, int *lomode, int *himode);
  

Description of getmoderange


getmoderange gets the range of valid graphics modes for the given
graphics driver, graphdriver. The lowest permissible mode value is
returned in *lomode, and the highest permissible value is *himode. If
graphdriver specifies an invalid graphics driver, both *lomode and
*himode are set to -1. If the value of graphdriver is -1, the currently
l…</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/graphics.h/lineto?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>lineto</title>
        <link>https://code-reference.com/c/graphics.h/lineto?rev=1708041951&amp;do=diff</link>
        <description>lineto

Syntax of lineto


#include &lt;graphics.h&gt;
void lineto(int x, int y);
  

Description of lineto


lineto draws a line from the CP (current position) to (x,y), then moves
the CP to (x,y).


Example of lineto


/* lineto example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   char msg[80];

   /* initialize graphics and local variables */
   initgraph(&amp;gdriver, &amp;…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxwidth?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>getmaxwidth</title>
        <link>https://code-reference.com/c/graphics.h/getmaxwidth?rev=1708041950&amp;do=diff</link>
        <description>getmaxwidth

Syntax of getmaxwidth


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

Description of getmaxwidth


The getmaxwidth function is available in the winbgim implementation of
BGI graphics. The function returns the maximum width that will fit on the
screen when creating a window with initwindow. This is one of the few BGI
functions that may be called before calling initwindow.</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/c/graphics.h/bar3d?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>bar3d</title>
        <link>https://code-reference.com/c/graphics.h/bar3d?rev=1708041957&amp;do=diff</link>
        <description>bar3d

Syntax of bar3d


#include &lt;graphics.h&gt;
void bar3d(int left, int top, int right, int bottom, int depth, int
topflag);
  

Description of bar3d


bar3d draws a three-dimensional rectangular bar, then fills it using the
current fill pattern and fill color. The three-dimensional outline of the
bar is drawn in the current line style and color. The bar's depth in
pixels is given by depth. The topflag parameter governs whether a three-
dimensional top is put on the bar. If topflag is nonzero, a…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/bar?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>bar</title>
        <link>https://code-reference.com/c/graphics.h/bar?rev=1708041955&amp;do=diff</link>
        <description>bar

Syntax of bar


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

Description of bar


bar draws a filled-in, rectangular, two-dimensional bar. The bar is
filled using the current fill pattern and fill color. bar does not
outline the bar; to draw an outlined two-dimensional bar, use bar3d with
depth equal to 0.
The upper left and lower right corners of the rectangle are given by
(left, top) and (right, bottom), respectively. The coordinates refer to
pixels.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdarg.h/va_copy?rev=1708041946&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:46+02:00</dc:date>
        <title>c:stdarg.h:va_copy</title>
        <link>https://code-reference.com/c/stdarg.h/va_copy?rev=1708041946&amp;do=diff</link>
        <description>void va_copy(va_list dest, va_list src);



       An obvious implementation would have a va_list be a pointer to the stack frame
       of the variadic function.  In such a setup (by far the most common) there
       seems nothing against an assignment
    
           va_list aq = ap;
    
       Unfortunately, there are also systems that make it an array of pointers (of
       length 1), and there one needs
    
           va_list aq;
           *aq = *ap;
    
       Finally, on systems where…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setgraphbufsize?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>setgraphbufsize</title>
        <link>https://code-reference.com/c/graphics.h/setgraphbufsize?rev=1708041950&amp;do=diff</link>
        <description>setgraphbufsize

Syntax of setgraphbufsize


#include &lt;graphics.h&gt;
unsigned setgraphbufsize(unsigned bufsize);
  

Description of setgraphbufsize


Some of the graphics routines (such as floodfill) use a memory buffer
that is allocated when initgraph is called and released when closegraph
is called. The default size of this buffer, allocated by _graphgetmem, is
4,096 bytes.
You might want to make this buffer smaller (to save memory space) or
bigger (if, for example, a call to floodfill produces …</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/arduino/math/map?rev=1708041860&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:20+02:00</dc:date>
        <title>map(value, fromLow, fromHigh, toLow, toHigh)</title>
        <link>https://code-reference.com/arduino/math/map?rev=1708041860&amp;do=diff</link>
        <description>Description

Re-maps a number from one range to another.  That is, a value of fromLow would get mapped to toLow, a value of fromHigh to toHigh, values in-between to values in-between, etc.

Does not constrain values to within the range, because out-of-range values are sometimes intended and useful. The constrain() function may be used either before or after this function, if limits to the ranges are desired.</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/arduino/data_types/char?rev=1708041851&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:11+02:00</dc:date>
        <title>char</title>
        <link>https://code-reference.com/arduino/data_types/char?rev=1708041851&amp;do=diff</link>
        <description>Description

A data type that takes up 1 byte of memory that stores a character value.  Character literals are written in single quotes, like this: [= 'A' =] (for multiple characters - strings - use double quotes: “ABC”).  

Characters are stored as numbers however. You can see the specific encoding in the  ASCII chart. This means that it is possible to do arithmetic on characters, in which the ASCII value of the character is used (e.g. [= 'A' + 1 =] has the value 66, since the ASCII value of th…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getpalettesize?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>getpalettesize</title>
        <link>https://code-reference.com/c/graphics.h/getpalettesize?rev=1708041953&amp;do=diff</link>
        <description>getpalettesize

Syntax of getpalettesize


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

Description of getpalettesize


getpalettesize is used to determine how many palette entries can be set
for the current graphics mode. For example, the EGA in color mode returns
16.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/cprintf?rev=1439031039&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-08-08T12:50:39+02:00</dc:date>
        <title>cprintf</title>
        <link>https://code-reference.com/c/conio.h/cprintf?rev=1439031039&amp;do=diff</link>
        <description>int cprintf(const char *format[, argument, ...]);


description of cprintf

prints formatted output to the screen.



cprintf takes multiple arguments, applies to each of the format specifier contained in the format string, pointed to by
format, and prints the formatted data directly to the current text window on the screen. The number of available format
must match the number of arguments.</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/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/control_structures/while?rev=1361019359&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-16T13:55:59+02:00</dc:date>
        <title>while</title>
        <link>https://code-reference.com/c/control_structures/while?rev=1361019359&amp;do=diff</link>
        <description>while

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

    while ( condition == true ) {
    do something until condition untrue
    }


C Sourcecode Example



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


int main(void) {
    int i=0;
    
    while (i &lt;= 10) {
        printf(&quot;%i\n&quot;,i);
        i++;
    }
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures/continue?rev=1708041847&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:07+02:00</dc:date>
        <title>continue</title>
        <link>https://code-reference.com/arduino/control_structures/continue?rev=1708041847&amp;do=diff</link>
        <description>The continue statement skips the rest of the current iteration of a loop (do, for, or while).  It continues by checking the conditional expression of the loop, and proceeding with any subsequent iterations.

Example



for (x = 0; x &lt; 255; x ++)
{
    if (x &gt; 40 &amp;&amp; x &lt; 120){      // create jump in values
        continue;
    }

    digitalWrite(PWMpin, x);
    delay(50);
}</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/data_types/stringobject?rev=1708041852&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:12+02:00</dc:date>
        <title>String</title>
        <link>https://code-reference.com/arduino/data_types/stringobject?rev=1708041852&amp;do=diff</link>
        <description>Description

The String class, part of the core as of version 0019, allows you to use and manipulate strings of text in more complex ways than  character arrays do. You can concatenate Strings, append to them, search for and replace substrings, and more.  It takes more memory than a simple character array, but it is also more useful.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getlinesettings?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>getlinesettings</title>
        <link>https://code-reference.com/c/graphics.h/getlinesettings?rev=1708041947&amp;do=diff</link>
        <description>getlinesettings

Syntax of getlinesettings


#include &lt;graphics.h&gt;
void getlinesettings(struct linesettingstype *lineinfo);
  

Description of getlinesettings


getlinesettings fills a linesettingstype structure pointed to by lineinfo
with information about the current line style, pattern, and thickness.
The linesettingstype structure is defined in graphics.h as follows:
struct linesettingstype {
   int linestyle;
   unsigned upattern;
   int thickness;
};
linestyle specifies in which style subs…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/moverel?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>moverel</title>
        <link>https://code-reference.com/c/graphics.h/moverel?rev=1708041955&amp;do=diff</link>
        <description>moverel

Syntax of moverel


#include &lt;graphics.h&gt;
void moverel(int dx, int dy);
  

Description of moverel


moverel moves the current position (CP) dx pixels in the x direction and
dy pixels in the y direction.


Example of moverel


/* moverel example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   char msg[80];

   /* initialize graphics and local variables */
  …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/installuserdriver?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>installuserdriver</title>
        <link>https://code-reference.com/c/graphics.h/installuserdriver?rev=1708041954&amp;do=diff</link>
        <description>installuserdriver

output of installuserdriver example
  no output of example at the moment
  do not hesitate and add it...</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/arduino/time/millis?rev=1708041862&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:22+02:00</dc:date>
        <title>millis()</title>
        <link>https://code-reference.com/arduino/time/millis?rev=1708041862&amp;do=diff</link>
        <description>Description

Returns the number of milliseconds since the Arduino board began running the current program.  This number will overflow (go back to zero), after approximately 50 days.

Parameters

None

Returns

Number of milliseconds since the program started (unsigned long)</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getpixel?rev=1439308760&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-08-11T17:59:20+02:00</dc:date>
        <title>getpixel</title>
        <link>https://code-reference.com/c/graphics.h/getpixel?rev=1439308760&amp;do=diff</link>
        <description>getpixel

Syntax of getpixel


#include &lt;graphics.h&gt;
unsigned getpixel(int x, int y);
  

Description of getpixel


getpixel gets the color of the pixel located at (x,y).


Example of getpixel


/* getpixel example */

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

#define PIXEL_COUNT 1000
#define DELAY_TIME  100  /* in milliseconds */

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   int i, x, y, col…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxx?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>getmaxx</title>
        <link>https://code-reference.com/c/graphics.h/getmaxx?rev=1708041953&amp;do=diff</link>
        <description>getmaxx

Syntax of getmaxx


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

Description of getmaxx


getmaxx returns the maximum (screen-relative) x value for the current
graphics driver and mode.
For example, on a CGA in 320*200 mode, getmaxx returns 319. getmaxx is
invaluable for centering, determining the boundaries of a region
onscreen, and so on.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/rectangle?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>rectangle</title>
        <link>https://code-reference.com/c/graphics.h/rectangle?rev=1708041949&amp;do=diff</link>
        <description>rectangle

Syntax of rectangle


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

Description of rectangle


rectangle draws a rectangle in the current line style, thickness, and
drawing color.
(left,top) is the upper left corner of the rectangle, and (right,bottom)
is its lower right corner.</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/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/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/graphics.h/getwindowheight?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>getwindowheight</title>
        <link>https://code-reference.com/c/graphics.h/getwindowheight?rev=1708041952&amp;do=diff</link>
        <description>getwindowheight

Syntax of getwindowheight


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

Description of getwindowheight


The getwindowheight function is available in the winbgim implementation
of BGI graphics. The function returns the total height of the window
including nondrawable border areas.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/settextjustify?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>settextjustify</title>
        <link>https://code-reference.com/c/graphics.h/settextjustify?rev=1708041947&amp;do=diff</link>
        <description>settextjustify

Syntax of settextjustify


#include &lt;graphics.h&gt;
void settextjustify(int horiz, int vert);
  

Description of settextjustify


Text output after a call to settextjustify is justified around the
current position (CP) horizontally and vertically, as specified. The
default justification settings are LEFT_TEXT (for horizontal) and
TOP_TEXT (for vertical). The enumeration text_just in graphics.h provides
names for the horiz and vert settings passed to settextjustify.
==== Description …</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/graphics.h/line?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>line</title>
        <link>https://code-reference.com/c/graphics.h/line?rev=1708041953&amp;do=diff</link>
        <description>line

Syntax of line


#include &lt;graphics.h&gt;
void line(int x1, int y1, int x2, int y2);
  

Description of line


line draws a line in the current color, using the current line style and
thickness between the two points specified, (x1,y1) and (x2,y2), without
updating the current position (CP).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/detectgraph?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>detectgraph</title>
        <link>https://code-reference.com/c/graphics.h/detectgraph?rev=1708041952&amp;do=diff</link>
        <description>detectgraph

Syntax of detectgraph


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



Description of detectgraph


detectgraph detects your system's graphics adapter and chooses the mode
that provides the highest resolution for that adapter. If no graphics
hardware is detected, *graphdriver is set to grNotDetected (-2), and
graphresult returns grNotDetected (-2).
*graphdriver is an integer that specifies the graphics driver to be used.
You can give it a value using a …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getdrivername?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getdrivername</title>
        <link>https://code-reference.com/c/graphics.h/getdrivername?rev=1708041957&amp;do=diff</link>
        <description>getdrivername

Syntax of getdrivername


#include &lt;graphics.h&gt;
char *getdrivername(void);
  

Description of getdrivername


After a call to initgraph, getdrivername returns the name of the driver
that is currently loaded.


Example of getdrivername


/* getdrivername example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main()
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;

   /* stores the device driver name */
   char *dr…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/textwidth?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>textwidth</title>
        <link>https://code-reference.com/c/graphics.h/textwidth?rev=1708041955&amp;do=diff</link>
        <description>textwidth

Syntax of textwidth


#include &lt;graphics.h&gt;
int textwidth(char *textstring);
  

Description of textwidth


The graphics function textwidth takes the string length, current font
size, and multiplication factor, and determines the width of textstring
in pixels.
This function is useful for computing viewport widths, sizing a title to
make it fit on a graph or in a box, and so on.
Use textwidth to compute the width of strings, instead of doing the
computations manually. When you use this…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setaspectratio?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>setaspectratio</title>
        <link>https://code-reference.com/c/graphics.h/setaspectratio?rev=1708041954&amp;do=diff</link>
        <description>setaspectratio

Syntax of setaspectratio


#include &lt;graphics.h&gt;
void setaspectratio(int xasp, int yasp);
  

Description of setaspectratio


setaspectratio changes the default aspect ratio of the graphics system.
The graphics system uses the aspect ratio to make sure that circles are
round onscreen. If circles appear elliptical, the monitor is not aligned
properly. You could correct this in the hardware by realigning the
monitor, but it's easier to change in the software by using
setaspectratio…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getdisplaycolor?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>getdisplaycolor</title>
        <link>https://code-reference.com/c/graphics.h/getdisplaycolor?rev=1708041950&amp;do=diff</link>
        <description>getdisplaycolor

Syntax of getdisplaycolor


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

Description of getdisplaycolor


The getdisplaycolor function is available in the winbgim implementation
of BGI graphics. getdisplaycolor is used to get an color that the current
actual display device can display.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getcolor?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>getcolor</title>
        <link>https://code-reference.com/c/graphics.h/getcolor?rev=1708041954&amp;do=diff</link>
        <description>getcolor

Syntax of getcolor


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

Description of getcolor


getcolor returns the current drawing color. The drawing color is the
value to which pixels are set when lines and so on are drawn. For
example, in CGAC0 mode, the palette contains four colors: the background
color, light green, light red, and yellow. In this mode, if getcolor
returns 1, the current drawing color is light green.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setgraphmode?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>setgraphmode</title>
        <link>https://code-reference.com/c/graphics.h/setgraphmode?rev=1708041949&amp;do=diff</link>
        <description>setgraphmode

Syntax of setgraphmode


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

Description of setgraphmode


setgraphmode selects a graphics mode different than the default one set
by initgraph. mode must be a valid mode for the current device driver.
setgraphmode clears the screen and resets all graphics settings to their
defaults (current position, palette, color, viewport, and so on).
You can use setgraphmode in conjunction with restorecrtmode to switch
back and forth between t…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getviewsettings?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>getviewsettings</title>
        <link>https://code-reference.com/c/graphics.h/getviewsettings?rev=1708041948&amp;do=diff</link>
        <description>getviewsettings

Syntax of getviewsettings


#include &lt;graphics.h&gt;
void getviewsettings(struct viewporttype *viewport);
  

Description of getviewsettings


getviewsettings fills the viewporttype structure pointed to by viewport
with information about the current viewport.
The viewporttype structure used by getviewport is defined in graphics.h
as follows:
struct viewporttype {
   int left, top, right, bottom;
   int clip;
};</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/circle?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>circle</title>
        <link>https://code-reference.com/c/graphics.h/circle?rev=1708041949&amp;do=diff</link>
        <description>circle

Syntax of circle


#include &lt;graphics.h&gt;
void circle(int x, int y, int radius);
  

Description of circle


circle draws a circle in the current drawing color with its center at
(x,y) and the radius given by radius.
The linestyle parameter does not affect arcs, circles, ellipses, or pie
slices. Only the thickness parameter is used.
If your circles are not perfectly round, adjust the aspect ratio.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/grapherrormsg?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>grapherrormsg</title>
        <link>https://code-reference.com/c/graphics.h/grapherrormsg?rev=1708041951&amp;do=diff</link>
        <description>grapherrormsg

Syntax of grapherrormsg


#include &lt;graphics.h&gt;
char * grapherrormsg(int errorcode);
  

Description of grapherrormsg


grapherrormsg returns a pointer to the error message string associated
with errorcode, the value returned by graphresult.
Refer to the entry for errno in the Library Reference, Chapter 4, for a
list of error messages and mnemonics.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/putpixel?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>putpixel</title>
        <link>https://code-reference.com/c/graphics.h/putpixel?rev=1708041947&amp;do=diff</link>
        <description>putpixel

Syntax of putpixel


#include &lt;graphics.h&gt;
void putpixel(int x, int y, int color);
  

Description of putpixel


putpixel plots a point in the color defined by color at (x,y).


Example of putpixel


/* putpixel example */

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

#define PIXEL_COUNT 1000
#define DELAY_TIME  100  /* in milliseconds */

int main()
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   int i…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getgraphmode?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>getgraphmode</title>
        <link>https://code-reference.com/c/graphics.h/getgraphmode?rev=1708041956&amp;do=diff</link>
        <description>getgraphmode

Syntax of getgraphmode


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

Description of getgraphmode


Your program must make a successful call to initgraph before calling
getgraphmode.
The enumeration graphics_mode, defined in graphics.h, gives names for the
predefined graphics modes. For a table listing these enumeration values,
refer to the description for initgraph.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/graphdefaults?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>graphdefaults</title>
        <link>https://code-reference.com/c/graphics.h/graphdefaults?rev=1708041949&amp;do=diff</link>
        <description>graphdefaults

Syntax of graphdefaults


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

Description of graphdefaults


graphdefaults resets all graphics settings to their defaults:
    * sets the viewport to the entire screen.
    * moves the current position to (0,0).
    * sets the default palette colors, background color, and drawing
color.
    * sets the default fill style and pattern.
    * sets the default text font and justification.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setrgbpalette?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>setrgbpalette</title>
        <link>https://code-reference.com/c/graphics.h/setrgbpalette?rev=1708041947&amp;do=diff</link>
        <description>setrgbpalette

Syntax of setrgbpalette


#include &lt;graphics.h&gt;
void setrgbpalette(int colornum, int red, int green, int blue);
  

Description of setrgbpalette


setrgbpalette can be used with the IBM 8514 and VGA drivers.
colornum defines the palette entry to be loaded, while red, green, and
blue define the component colors of the palette entry.
For the IBM 8514 display (and the VGA in 256K color mode), colornum is in
the range 0 to 255. For the remaining modes of the VGA, colornum is in
the ra…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/gety?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>gety</title>
        <link>https://code-reference.com/c/graphics.h/gety?rev=1708041954&amp;do=diff</link>
        <description>gety

Syntax of gety


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

Description of gety


gety returns the current graphics position's y-coordinate. The value is
viewport-relative.


Example of gety


/* gety example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   char msg[80];

   /* initialize graphics and local variables */
   initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;);

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

Syntax of setpalette


      #include &lt;graphics.h&gt;
      void setpalette(int colornum, int color);


Description of setpalette


      setpalette changes the colornum entry in the palette to color. For
      example, setpalette(0,5) changes the first color in the current palette
      (the background color) to actual color number 5. If size is the number of
      entries in the current palette, colornum can range between 0 and (size -
      1).
      You can partially (or completely)…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmodename?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>getmodename</title>
        <link>https://code-reference.com/c/graphics.h/getmodename?rev=1708041955&amp;do=diff</link>
        <description>getmodename

Syntax of getmodename


#include &lt;graphics.h&gt;
char *getmodename(int mode_number);
  

Description of getmodename


getmodename accepts a graphics mode number as input and returns a string
containing the name of the corresponding graphics mode. The mode names
are embedded in each driver. The return values (&quot;320*200 CGA P1,&quot;
&quot;640*200 CGA&quot;, and so on) are useful for building menus or displaying
status.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/sector?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>sector</title>
        <link>https://code-reference.com/c/graphics.h/sector?rev=1708041956&amp;do=diff</link>
        <description>sector

Syntax of sector


#include &lt;graphics.h&gt;
void sector(int x, int y, int stangle, int endangle, int xradius, int
yradius);
  

Description of sector


Draws and fills an elliptical pie slice using (x,y) as the center point,
xradius and yradius as the horizontal and vertical radii, respectively,
and drawing from stangle to endangle. The pie slice is outlined using the
current color, and filled using the pattern and color defined by
setfillstyle or setfillpattern.
The angles for sector are g…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxheight?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getmaxheight</title>
        <link>https://code-reference.com/c/graphics.h/getmaxheight?rev=1708041957&amp;do=diff</link>
        <description>getmaxheight

Syntax of getmaxheight


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

Description of getmaxheight


The getmaxheight function is available in the winbgim implementation of
BGI graphics. The function returns the maximum height that will fit on
the screen when creating a window with initwindow. This is one of the few
BGI functions that may be called before calling initwindow. Note: The
value returned is correct for a window with a non-empty title. If you
create a window with the…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/examples/indexpath_for_custom_cell?rev=1708041979&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:19+02:00</dc:date>
        <title>indexPath.row for IBAction Button in a Custom Cell</title>
        <link>https://code-reference.com/objective-c/examples/indexpath_for_custom_cell?rev=1708041979&amp;do=diff</link>
        <description>to get the indexPath.row for a IBAction Button in your Custom Cell simply do this



/**
* 1. Connect the Button from the Custom Cell to your ViewController.h as IBAction
* 2. add the following code to your ViewController.m
*/

- (IBAction)buildButton:(id)sender forEvent:(UIEvent *)event {
    
    UIButton *button = (UIButton *)sender;
    UITableViewCell *cell = (UITableViewCell *)button.superview;
    UITableView *tableView = (UITableView *)cell.superview;
    NSIndexPath *indexPath = [tableV…</description>
    </item>
    <item rdf:about="https://code-reference.com/java/loops/while?rev=1365667420&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-11T10:03:40+02:00</dc:date>
        <title>while</title>
        <link>https://code-reference.com/java/loops/while?rev=1365667420&amp;do=diff</link>
        <description>while (condition) {

//command

}


a while loop do something while a condition

example of while loop in java


package codereferececomjava;

public class CodeRefereceComJava {
 
    public static void main(String[] args) {

        int i=4;
              
        while(i==4) {
        
             i++;
         }
         
        System.out.println(&quot;i is :&quot; + i );
    }
}</description>
    </item>
    <item rdf:about="https://code-reference.com/wiki/dokuwiki?rev=1708040894&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T00:48:14+02:00</dc:date>
        <title>DokuWiki</title>
        <link>https://code-reference.com/wiki/dokuwiki?rev=1708040894&amp;do=diff</link>
        <description>DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at creating documentation of any kind. It is targeted at developer teams, workgroups and small companies. It has a simple but powerful Formatting Syntax which makes sure the datafiles remain readable outside the Wiki and eases the creation of structured texts. All data is stored in plain text files -- no database is required.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getx?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>getx</title>
        <link>https://code-reference.com/c/graphics.h/getx?rev=1708041954&amp;do=diff</link>
        <description>getx

Syntax of getx


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

Description of getx


getx finds the current graphics position's x-coordinate. The value is
viewport-relative.


Example of getx


/* getx example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   char msg[80];


   /* initialize graphics and local variables */
   initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;);

   /* r…</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/control_structures/while?rev=1708041872&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:32+02:00</dc:date>
        <title>while</title>
        <link>https://code-reference.com/cpp/control_structures/while?rev=1708041872&amp;do=diff</link>
        <description>while

    
    #include &lt;iostream&gt; /* including standard library */

    while ( condition == true ) {
    do something until condition untrue
    }


cpp Sourcecode Example



#include &lt;iostream&gt; /* including standard library */

using namespace std;
int main(void) {
    int i=0;
    
    while (i &lt;= 99) {
        cout &lt;&lt; i &lt;&lt; endl;
        i++;
    }
    return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getmaxcolor?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>getmaxcolor</title>
        <link>https://code-reference.com/c/graphics.h/getmaxcolor?rev=1708041956&amp;do=diff</link>
        <description>getmaxcolor

Syntax of getmaxcolor


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

Description of getmaxcolor


getmaxcolor returns the highest valid color value for the current
graphics driver and mode that can be passed to setcolor.
For example, on a 256K EGA, getmaxcolor always returns 15, which means
that any call to setcolor with a value from 0 to 15 is valid. On a CGA in
high-resolution mode or on a Hercules monochrome adapter, getmaxcolor
returns a value of 1.
  Windows Notes 
The winb…</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/constants/integerconstants?rev=1708041856&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:16+02:00</dc:date>
        <title>Integer Constants</title>
        <link>https://code-reference.com/arduino/constants/integerconstants?rev=1708041856&amp;do=diff</link>
        <description>Integer constants are numbers used directly in a sketch, like 123.  By default, these numbers are treated as int's but you can change this with the U and L modifiers (see below).

Normally, integer constants are treated as base 10 (decimal) integers, but special notation (formatters) may be used to enter numbers in other bases.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/data_types/string?rev=1708041852&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:12+02:00</dc:date>
        <title>string</title>
        <link>https://code-reference.com/arduino/data_types/string?rev=1708041852&amp;do=diff</link>
        <description>Description

Text strings can be represented in two ways.  you can use the String data type, which is part of the core as of version 0019, or you can make a string out of an array of type char and null-terminate it.  This page described the latter method. For more details on the String object, which gives you more functionality at the cost of more memory, see the String object page.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setfillpattern?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>setfillpattern</title>
        <link>https://code-reference.com/c/graphics.h/setfillpattern?rev=1708041954&amp;do=diff</link>
        <description>setfillpattern

Syntax of setfillpattern


#include &lt;graphics.h&gt;
void setfillpattern(char *upattern, int color);
  

Description of setfillpattern


setfillpattern is like setfillstyle, except that you use it to set a
user-defined 8x8 pattern rather than a predefined pattern.
upattern is a pointer to a sequence of 8 bytes, with each byte
corresponding to 8 pixels in the pattern. Whenever a bit in a pattern
byte is set to 1, the corresponding pixel is plotted.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/fillellipse?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>fillellipse</title>
        <link>https://code-reference.com/c/graphics.h/fillellipse?rev=1708041958&amp;do=diff</link>
        <description>fillellipse

Syntax of fillellipse


#include &lt;graphics.h&gt;
void fillellipse(int x, int y, int xradius, int yradius);
  

Description of fillellipse


Draws an ellipse using (x,y) as a center point and xradius and yradius as
the horizontal and vertical axes, and fills it with the current fill
color and fill pattern.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setwritemode?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>setwritemode</title>
        <link>https://code-reference.com/c/graphics.h/setwritemode?rev=1708041953&amp;do=diff</link>
        <description>setwritemode

Syntax of setwritemode


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

Description of setwritemode


The following constants are defined:
COPY_PUT = 0/* MOV */
XOR_PUT  = 1/* XOR */
Each constant corresponds to a binary operation between each byte in the
line and the corresponding bytes onscreen. COPY_PUT uses the assembly
language MOV instruction, overwriting with the line whatever is on the
screen. XOR_PUT uses the XOR command to combine the line with the screen.
Two suc…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/ellipse?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>ellipse</title>
        <link>https://code-reference.com/c/graphics.h/ellipse?rev=1708041952&amp;do=diff</link>
        <description>ellipse

Syntax of ellipse


#include &lt;graphics.h&gt;
void ellipse(int x, int y, int stangle, int endangle, int xradius, int
yradius);
  

Description of ellipse


ellipse draws an elliptical arc in the current drawing color with its
center at (x,y) and the horizontal and vertical axes given by xradius and
yradius, respectively. The ellipse travels from stangle to endangle. If
stangle equals 0 and endangle equals 360, the call to ellipse draws a
complete ellipse.
The angle for ellipse is reckoned c…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getdefaultpalette?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>getdefaultpalette</title>
        <link>https://code-reference.com/c/graphics.h/getdefaultpalette?rev=1708041953&amp;do=diff</link>
        <description>getdefaultpalette

Syntax of getdefaultpalette


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

Description of getdefaultpalette


getdefaultpalette finds the palettetype structure that contains the
palette initialized by the driver during initgraph.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/linerel?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>linerel</title>
        <link>https://code-reference.com/c/graphics.h/linerel?rev=1708041950&amp;do=diff</link>
        <description>linerel

Syntax of linerel


#include &lt;graphics.h&gt;
void linerel(int dx, int dy);
  

Description of linerel


linerel draws a line from the CP (current position) to a point that is a
relative distance (dx,dy) from the CP. The CP is advanced by (dx,dy).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setcurrentwindow?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>setcurrentwindow</title>
        <link>https://code-reference.com/c/graphics.h/setcurrentwindow?rev=1708041953&amp;do=diff</link>
        <description>setcurrentwindow

output of setcurrentwindow example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/moveto?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>moveto</title>
        <link>https://code-reference.com/c/graphics.h/moveto?rev=1708041958&amp;do=diff</link>
        <description>moveto

Syntax of moveto


#include &lt;graphics.h&gt;
void moveto(int x, int y);
  

Description of moveto


moveto moves the current position (CP) to viewport position (x,y).


Example of moveto


/* moveto example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   char msg[80];

   /* initialize graphics and local variables */
   initgraph(&amp;gdriver, &amp;gmode, &quot;&quot;);

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

output of getfillpattern example
  no output of example at the moment
  do not hesitate and add it...</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/drawpoly?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>drawpoly</title>
        <link>https://code-reference.com/c/graphics.h/drawpoly?rev=1708041952&amp;do=diff</link>
        <description>drawpoly

Syntax of drawpoly


#include &lt;graphics.h&gt;
void drawpoly(int numpoints, int *polypoints);
  

Description of drawpoly


drawpoly draws a polygon with numpoints points, using the current line
style and color.
*polypoints points to a sequence of (numpoints * 2) integers. Each pair
of integers gives the x- and y-coordinates of a point on the polygon.
In order to draw a closed figure with n vertices, you must pass n + 1
coordinates to drawpoly where the nth coordinate is equal to the 0th.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/conio.h/cputs?rev=1359922049&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-03T21:07:29+02:00</dc:date>
        <title>cputs</title>
        <link>https://code-reference.com/c/conio.h/cputs?rev=1359922049&amp;do=diff</link>
        <description>int cputs(const char *str);


description of cputs

Returns a string to the screen.



cputs is the null-terminated string from str in the current text window. The newline character is not here appended to the string.



Depending _directvideo of the global variable, the string is written either directly or through a BIOS call to screen memory.
To contrast to fprintf and printf, not translated cputs line character (\ n) in the combination of characters carriage return / line feed (\ r \ n).</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/c/graphics.h/outtext?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>outtext</title>
        <link>https://code-reference.com/c/graphics.h/outtext?rev=1708041957&amp;do=diff</link>
        <description>outtext

Syntax of outtext


#include &lt;graphics.h&gt;
void outtext(char *textstring);
  

Description of outtext


outtext displays a text string in the viewport, using the current font,
direction, and size.
outtext outputs textstring at the current position (CP). If the
horizontal text justification is LEFT_TEXT and the text direction is
HORIZ_DIR, the CP's x-coordinate is advanced by textwidth(textstring).
Otherwise, the CP remains unchanged.
To maintain code compatibility when using several font…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getfillsettings?rev=1708041953&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:53+02:00</dc:date>
        <title>getfillsettings</title>
        <link>https://code-reference.com/c/graphics.h/getfillsettings?rev=1708041953&amp;do=diff</link>
        <description>getfillsettings

output of getfillsettings example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/outtextxy?rev=1708041951&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:51+02:00</dc:date>
        <title>outtextxy</title>
        <link>https://code-reference.com/c/graphics.h/outtextxy?rev=1708041951&amp;do=diff</link>
        <description>outtextxy

Syntax of outtextxy


#include &lt;graphics.h&gt;
void outtextxy(int x, int y, char *textstring);
  

Description of outtextxy


outtextxy displays a text string in the viewport at the given position
(x, y), using the current justification settings and the current font,
direction, and size.
To maintain code compatibility when using several fonts, use textwidth
and textheight to determine the dimensions of the string.
If a string is printed with the default font using outtext or outtextxy,
a…</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/graphics.h/pieslice?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>pieslice</title>
        <link>https://code-reference.com/c/graphics.h/pieslice?rev=1708041954&amp;do=diff</link>
        <description>pieslice

Syntax of pieslice


#include &lt;graphics.h&gt;
void pieslice(int x, int y, int stangle, int endangle, int radius);
  

Description of pieslice


pieslice draws and fills a pie slice centered at (x,y) with a radius
given by radius. The slice travels from stangle to endangle. The slice is
outlined in the current drawing color and then filled using the current
fill pattern and fill color.
The angles for pieslice are given in degrees. They are measured
counterclockwise, with 0 degrees at 3 o'c…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/clearviewport?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>clearviewport</title>
        <link>https://code-reference.com/c/graphics.h/clearviewport?rev=1708041952&amp;do=diff</link>
        <description>clearviewport

Syntax of clearviewport


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

Description of clearviewport


clearviewport erases the viewport and moves the CP (current position) to
home (0,0), relative to the viewport.


Example of clearviewport


/* clearviewport example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

#define CLIP_ON 1   /* activates clipping in viewport */

int main(void)
{
   /* request autodetection */
   int gdriver = DET…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getwindowwidth?rev=1708041947&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:47+02:00</dc:date>
        <title>getwindowwidth</title>
        <link>https://code-reference.com/c/graphics.h/getwindowwidth?rev=1708041947&amp;do=diff</link>
        <description>getwindowwidth

Syntax of getwindowwidth


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

Description of getwindowwidth


The getwindowwidth function is available in the winbgim implementation of
BGI graphics. The function returns the total width of the window
including nondrawable border areas.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setmousequeuestatus?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>setmousequeuestatus</title>
        <link>https://code-reference.com/c/graphics.h/setmousequeuestatus?rev=1708041956&amp;do=diff</link>
        <description>setmousequeuestatus

Syntax of setmousequeuestatus


#include &quot;graphics.h&quot;
voud setmousequeuestatus(int kind, bool status=true);
  

Description of setmousequeuestatus


The setmousequeuestatus function is available in the winbgim
implementation of BGI graphics. This function controls whether mouse
events of a particular kind are queued for processing. If the status
parameter is false, then mouse events of the specified kind are not
queued. This means that each time a mouse event of that kind oc…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/time.h/clock?rev=1708041884&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:44+02:00</dc:date>
        <title>clock</title>
        <link>https://code-reference.com/c/time.h/clock?rev=1708041884&amp;do=diff</link>
        <description>clock


    clock_t clock(void);


Description

The clock() function returns the processor time since the program started, or -1 if that information is unavailable.

To convert the return value to seconds, divide it by CLOCKS_PER_SEC. (Note: if your compiler is POSIX compliant, then CLOCKS_PER_SEC is always defined as 1000000.)</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures/while?rev=1708041848&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:08+02:00</dc:date>
        <title>while loops</title>
        <link>https://code-reference.com/arduino/control_structures/while?rev=1708041848&amp;do=diff</link>
        <description>Description

while loops will loop continuously, and infinitely, until the expression inside the parenthesis, () becomes false. Something must change the tested variable, or the while loop will never exit. This could be in your code, such as an incremented variable, or an external condition, such as testing a sensor.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/cleardevice?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>cleardevice</title>
        <link>https://code-reference.com/c/graphics.h/cleardevice?rev=1708041955&amp;do=diff</link>
        <description>cleardevice

Syntax of cleardevice


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

Description of cleardevice


cleardevice erases (that is, fills with the current background color) the
entire graphics screen and moves the CP (current position) to home (0,0).</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getcurrentwindow?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>getcurrentwindow</title>
        <link>https://code-reference.com/c/graphics.h/getcurrentwindow?rev=1708041956&amp;do=diff</link>
        <description>getcurrentwindow

output of getcurrentwindow example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/floodfill?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>floodfill</title>
        <link>https://code-reference.com/c/graphics.h/floodfill?rev=1708041952&amp;do=diff</link>
        <description>floodfill

Syntax of floodfill


#include &lt;graphics.h&gt;
void floodfill(int x, int y, int border);
  

Description of floodfill


floodfill fills an enclosed area on bitmap devices. (x,y) is a &quot;seed
point&quot; within the enclosed area to be filled. The area bounded by the
color border is flooded with the current fill pattern and fill color. If
the seed point is within an enclosed area, the inside will be filled. If
the seed is outside the enclosed area, the exterior will be filled.
Use fillpoly instea…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/arc?rev=1708041954&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:54+02:00</dc:date>
        <title>arc</title>
        <link>https://code-reference.com/c/graphics.h/arc?rev=1708041954&amp;do=diff</link>
        <description>arc

Syntax of arc


#include &lt;graphics.h&gt;
void arc(int x, int y, int stangle, int endangle, int radius);
  

Description of arc


arc draws a circular arc in the current drawing color centered at (x,y)
with a radius given by radius. The arc travels from stangle to endangle.
If stangle equals 0 and endangle equals 360, the call to arc draws a
complete circle.
The angle for arc is reckoned counterclockwise, with 0 degrees at 3
o'clock, 90 degrees at 12 o'clock, and so on.
The linestyle parameter …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setvisualpage?rev=1708041955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:55+02:00</dc:date>
        <title>setvisualpage</title>
        <link>https://code-reference.com/c/graphics.h/setvisualpage?rev=1708041955&amp;do=diff</link>
        <description>setvisualpage

Syntax of setvisualpage


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

Description of setvisualpage


setvisualpage makes page the visual graphics page.


Example of setvisualpage


/* setvisualpage example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* select driver and mode that supports multiple pages */
   int gdriver = EGA, gmode = EGAHI, errorcode;
   int x, y, ht;

   /* initialize graphics and local va…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getbkcolor?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>getbkcolor</title>
        <link>https://code-reference.com/c/graphics.h/getbkcolor?rev=1708041957&amp;do=diff</link>
        <description>getbkcolor

Syntax of getbkcolor


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

Description of getbkcolor


getbkcolor returns the current background color. (See the table in
setbkcolor for details.)


Example of getbkcolor


/* getbkcolor example */

#include &lt;graphics.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;

int main(void)
{
   /* request autodetection */
   int gdriver = DETECT, gmode, errorcode;
   int bkcolor, midx, midy;
   char bkname[35];

   /…</description>
    </item>
    <item rdf:about="https://code-reference.com/cpp/editing_the_value_of_variables?rev=1392915540&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-02-20T17:59:00+02:00</dc:date>
        <title>cpp:editing_the_value_of_variables</title>
        <link>https://code-reference.com/cpp/editing_the_value_of_variables?rev=1392915540&amp;do=diff</link>
        <description>To edit the value of a variable, you use the mathematical operators +, -, /, and *.
Let's create the variable jimmy and set it to nine :

int jimmy = 9;

If we want jimmy to to set to 10 we can do the following:

jimmy = jimmy + 1;

Remember this syntax: [the varaible that you want to change] = [the number or existing varaible] ;</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getaspectration?rev=1708041949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:49+02:00</dc:date>
        <title>getaspectration</title>
        <link>https://code-reference.com/c/graphics.h/getaspectration?rev=1708041949&amp;do=diff</link>
        <description>getaspectration

Syntax of getaspectration


#include &lt;graphics.h&gt;
void getaspectratio(int *xasp, int *yasp);
  

Description of getaspectration


The y aspect factor, *yasp, is normalized to 10,000. On all graphics
adapters except the VGA, *xasp (the x aspect factor) is less than *yasp
because the pixels are taller than they are wide. On the VGA, which has
&quot;square&quot; pixels, *xasp equals *yasp. In general, the relationship between
*yasp and *xasp can be stated as
*yasp = 10,000
*xasp &lt;= 10,000
ge…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/restorecrtmode?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>restorecrtmode</title>
        <link>https://code-reference.com/c/graphics.h/restorecrtmode?rev=1708041958&amp;do=diff</link>
        <description>restorecrtmode

Syntax of restorecrtmode


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

Description of restorecrtmode


restorecrtmode restores the original video mode detected by initgraph.
This function can be used in conjunction with setgraphmode to switch back
and forth between text and graphics modes. textmode should not be used
for this purpose; use it only when the screen is in text mode, to change
to a different text mode.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getvisualpage?rev=1708041956&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:56+02:00</dc:date>
        <title>getvisualpage</title>
        <link>https://code-reference.com/c/graphics.h/getvisualpage?rev=1708041956&amp;do=diff</link>
        <description>getvisualpage

Syntax of getvisualpage


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

Description of getvisualpage


The getvisualpage function is available in the winbgim implementation of
BGI graphics. getvisualpage gets the page number of the currently visable
page (which is visible on the screen).
The visual graphics page might not be the one where drawing currnetly
takes place.
The original winbgi was designed to support up to 16 pages, but I have
only used pages 1 and 2 myself. NOTE:…</description>
    </item>
    <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/arduino/boolean_operators/boolean?rev=1708041859&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:19+02:00</dc:date>
        <title>&amp;&amp; (logical and)</title>
        <link>https://code-reference.com/arduino/boolean_operators/boolean?rev=1708041859&amp;do=diff</link>
        <description>!Boolean Operators 

These can be used inside the condition of an if  (conditional)  and   ==,  !=,  &lt;,  &gt; (comparison operators) statement.

&amp;&amp; (logical and)

True only if both operands are true, e.g.


if (digitalRead(2) == HIGH  &amp;&amp; digitalRead(3) == HIGH) { // read two switches 
  // ...
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/setusercharsize?rev=1708041957&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:57+02:00</dc:date>
        <title>setusercharsize</title>
        <link>https://code-reference.com/c/graphics.h/setusercharsize?rev=1708041957&amp;do=diff</link>
        <description>setusercharsize

output of setusercharsize example
  no output of example at the moment
  do not hesitate and add it...</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/getimage?rev=1708041958&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:58+02:00</dc:date>
        <title>getimage</title>
        <link>https://code-reference.com/c/graphics.h/getimage?rev=1708041958&amp;do=diff</link>
        <description>getimage

Syntax of getimage


#include &lt;graphics.h&gt;
void getimage(int left, int top, int right, int bottom, void *bitmap);
  

Description of getimage


getimage copies an image from the screen to memory.
left, top, right, and bottom define the screen area to which the
rectangle is copied. bitmap points to the area in memory where the bit
image is stored. The first two words of this area are used for the width
and height of the rectangle; the remainder holds the image itself.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/gettextsettings?rev=1708041950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:50+02:00</dc:date>
        <title>gettextsettings</title>
        <link>https://code-reference.com/c/graphics.h/gettextsettings?rev=1708041950&amp;do=diff</link>
        <description>gettextsettings

Syntax of gettextsettings


#include &lt;graphics.h&gt;
void gettextsettings(struct textsettingstype *texttypeinfo);
  

Description of gettextsettings


gettextsettings fills the textsettingstype structure pointed to by
textinfo with information about the current text font, direction, size,
and justification. The textsettingstype structure used by gettextsettings
is defined in graphics.h as follows:
struct textsettingstype {
   int font;
   int direction;
   int charsize;
   int hori…</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/graphics.h/setactivepage?rev=1708041948&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:48+02:00</dc:date>
        <title>setactivepage</title>
        <link>https://code-reference.com/c/graphics.h/setactivepage?rev=1708041948&amp;do=diff</link>
        <description>setactivepage

Syntax of setactivepage


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

Description of setactivepage


setactivepage makes page the active graphics page. All subsequent
graphics output will be directed to that graphics page.
The active graphics page might not be the one you see onscreen, depending
on how many graphics pages are available on your system. Only the EGA,
VGA, and Hercules graphics cards support multiple pages.</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/c/graphics.h/getactivepage?rev=1708041952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:52+02:00</dc:date>
        <title>getactivepage</title>
        <link>https://code-reference.com/c/graphics.h/getactivepage?rev=1708041952&amp;do=diff</link>
        <description>getactivepage

Syntax of getactivepage


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

Description of getactivepage


The getactivepage function is available in the winbgim implementation of
BGI graphics. getactivepage gets the page number of the currently active
page (where drawing takes place).
The active graphics page might not be the one you see onscreen, depending
on how many graphics pages are available on your system.
The original winbgi was designed to support up to 16 pages, but I …</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures/break?rev=1708041848&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:08+02:00</dc:date>
        <title>break</title>
        <link>https://code-reference.com/arduino/control_structures/break?rev=1708041848&amp;do=diff</link>
        <description>break is used to exit from a do, for, or while loop, bypassing the normal loop condition. It is also used to exit from a switch statement.

Example


for (x = 0; x &lt; 255; x ++)
{
    digitalWrite(PWMpin, x);
    sens = analogRead(sensorPin);  
    if (sens &gt; threshold){      // bail out on sensor detect
       x = 0;
       break;
    }  
    delay(50);
}</description>
    </item>
</rdf:RDF>
