<?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-18T19:23:15+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://code-reference.com/c/examples/mysql_bruteforce?rev=1708041925&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/else?rev=1708041848&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/java/control_structures/else?rev=1708041838&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/control_structures/return?rev=1708041885&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/control_structures/else?rev=1708041885&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/preprocessor/else?rev=1708041967&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/qsort?rev=1708041892&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/cpp/control_structures/if?rev=1708041872&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/control_structures?rev=1358463006&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/examples/port_scanner?rev=1708041925&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures?rev=1708040896&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/c/mysql/mysql.h/mysql_eof?rev=1362005186&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/string.h/strcoll?rev=1708041974&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_change_user?rev=1361916183&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_commit?rev=1361919057&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/lua/codea/stargenerator/star.lua?rev=1708042326&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/string.h/strcmp?rev=1708041975&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsstring.h/caseinsensitivecompare?rev=1708042344&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/control_structures/if?rev=1708041977&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/isequaltonumber?rev=1708042345&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/system?rev=1708041889&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_error?rev=1362006439&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/preprocessor?rev=1358518398&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/realloc?rev=1708041890&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/examples/xlog?rev=1708041979&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/bsearch?rev=1708041888&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fopen?rev=1430730823&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/clearerr?rev=1708041944&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/string.h/strchr?rev=1420913459&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_affected_rows?rev=1361914596&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_real_connect?rev=1708042327&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_close?rev=1359920392&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fclose?rev=1708041942&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_get_proto_info?rev=1361888088&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_init?rev=1359920158&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_autocommit?rev=1361915690&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/mysql/mysql.h/mysql_fetch_fields?rev=1362096452&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_errno?rev=1362005790&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/calloc?rev=1708041889&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/control_structures/for?rev=1708041976&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_get_server_info?rev=1361887552&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_dump_debug_info?rev=1362003839&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_get_server_version?rev=1361888045&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_data_seek?rev=1362002576&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_character_set_name?rev=1708042333&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/control_structures/return?rev=1708041847&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_debug?rev=1362003170&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/structure/loop?rev=1708041868&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_info?rev=1361892865&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/setjmp.h/longjmp?rev=1360003254&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/string.h/strcpy?rev=1396667049&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/free?rev=1413084164&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/string.h/memchr?rev=1708041974&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/objective-c/foundation.framework/nsstring.h/isequaltostring?rev=1708042344&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/setjmp.h/setjmp?rev=1360003391&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/keywords/else?rev=1708041962&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/lang/object/equals?rev=1365581557&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/wchar.h/fgetwc?rev=1708041932&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/graphics.h/getdisplaycolor?rev=1708041950&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/arduino/variable_scope_and_qualifiers/static?rev=1708041853&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_fetch_field?rev=1362094056&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_escape_string?rev=1362010868&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_create_db?rev=1361919366&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_get_host_info?rev=1361886971&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/mysql/mysql.h/mysql_drop_db?rev=1362003386&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdlib.h/malloc?rev=1708041892&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/fdopen?rev=1361800230&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/conio.h/gettext?rev=1360369313&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/wchar.h/fgetws?rev=1708041934&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/c/string.h/strcspn?rev=1708041975&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/feof?rev=1708041940&amp;do=diff"/>
                <rdf:li rdf:resource="https://code-reference.com/c/stdio.h/ferror?rev=1374831141&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/c/examples/mysql_bruteforce?rev=1708041925&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:25+02:00</dc:date>
        <title>MySQL Bruteforce</title>
        <link>https://code-reference.com/c/examples/mysql_bruteforce?rev=1708041925&amp;do=diff</link>
        <description>MySQL Bruteforce

written while a boring day

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


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

// Deutsch oder English
#define GER 1
#define ENG 0
/*
**************************************************************************************************
*  MYSQL Bruteforce Programm aus purer lange Weile geschrieben 
*   23.03 2010 by cd 
*
*   gcc mysql-bruteforce.c -o mysql-bruteforce -lmysqlcli…</description>
    </item>
    <item rdf:about="https://code-reference.com/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/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/java/control_structures/else?rev=1708041838&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:03:58+02:00</dc:date>
        <title>else</title>
        <link>https://code-reference.com/java/control_structures/else?rev=1708041838&amp;do=diff</link>
        <description>if ( condition == true ){
    command;    
 } else {
      // if the &quot;if&quot; condition false
      command;
      }


check if a condition is true or false

example of else




package plausibilitycheck;

import java.util.Scanner;

public class Plausibilitycheck{

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

        int celsius;
        double fahrenheit;

        Scanner scan = new Scanner(System.in);

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

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

   return value;


returns a value

C Sourcecode Example


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

#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;

int yesno( char value1[], char value2[] ){

    if ( strcmp( value1, value2 ) == 0)
	{
	    return 0;
	} else {
	    return 1;
	    }
}

int main(void) {

    char str…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/control_structures/else?rev=1708041885&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:45+02:00</dc:date>
        <title>else</title>
        <link>https://code-reference.com/c/control_structures/else?rev=1708041885&amp;do=diff</link>
        <description>else


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

    if ( condition == true ){
    command;    
    } else {
       command;
    }


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;

  for (i=0;i&lt;=99;i++){
    if (i==42) {
        printf(&quot;I have found the answer: %i\n&quot;,i);
    } else {
           printf(&quot;found any other…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/preprocessor/else?rev=1708041967&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:07+02:00</dc:date>
        <title>else</title>
        <link>https://code-reference.com/c/preprocessor/else?rev=1708041967&amp;do=diff</link>
        <description>description of else

else is in work by code-reference.com 

if you are faster... don't hasitate and add it


no example at the moment


output of else c example
  no example at the moment</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h/qsort?rev=1708041892&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:52+02:00</dc:date>
        <title>qsort</title>
        <link>https://code-reference.com/c/stdlib.h/qsort?rev=1708041892&amp;do=diff</link>
        <description>#include &lt;stdlib.h&gt;
    void qsort(void *base, size_t nitems, size_t size, int (*compar)(const void *, const void*));


Description

base   = Pointer to elements

nitems = Number of elements

size = Size of one element

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

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


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

int main(){

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

if (FALSE){
   cout &lt;&lt; &quot;This one will not&quot;;
}
return 0;
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/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/c/examples/port_scanner?rev=1708041925&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:25+02:00</dc:date>
        <title>portscanner in c</title>
        <link>https://code-reference.com/c/examples/port_scanner?rev=1708041925&amp;do=diff</link>
        <description>compile with gcc portscanner.c -o portscanner

portscanner c example


/*
 * This example is a very simple Portscanner 
 * for c network programming
 * http://code-reference.com/c/examples/port_scanner
 */

#include &lt;stdio.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;netinet/in.h&gt;
#include &lt;errno.h&gt;
#include &lt;netdb.h&gt;
#include &lt;signal.h&gt;

int main(int argc, char **argv)
{
  int probeport = 0;
  struct hostent *host;
  int err, i, net,a,b,c,d,anz,x,w;
  struct sockaddr_in sa;
  struct servent *bar;
     …</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures?rev=1708040896&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T00:48:16+02:00</dc:date>
        <title>control structures Overview</title>
        <link>https://code-reference.com/arduino/control_structures?rev=1708040896&amp;do=diff</link>
        <description>control structures Overview
 Name                 Description              break break  continue continue  dowhile dowhile  else else  for for  goto goto  if if  return return  switchcase switchcase  while while 
automatically generated overview ...

Change this page if you have a better description</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/c/mysql/mysql.h/mysql_eof?rev=1362005186&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-27T23:46:26+02:00</dc:date>
        <title>mysql_eof</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_eof?rev=1362005186&amp;do=diff</link>
        <description>my_bool mysql_eof(MYSQL_RES *result)


description of mysql_eof

is used to test whether a quantitative result has been read completely. returns 0 until the end of the results has not yet been reached otherwise value is 0

This function is obsolete,use mysql_errno() or mysql_error()</description>
    </item>
    <item rdf:about="https://code-reference.com/c/string.h/strcoll?rev=1708041974&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:14+02:00</dc:date>
        <title>strchr</title>
        <link>https://code-reference.com/c/string.h/strcoll?rev=1708041974&amp;do=diff</link>
        <description>int strcoll(const char *str1, const char *str2); 


 strcoll compares 2 strings

C Sourcecode Example


/* 
 * strcoll c example code
 * http://code-reference.com/c/string.h/strcoll 
 */
#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */
 
#include &lt;string.h&gt;
 
int main( void ) {
 
char string[] = &quot;am i the same&quot;;
char string2[] = &quot;i whant to be the same&quot;;
char string3[] = &quot;am i the same&quot;;
 
if( strcoll(string,string2) != 0 )
  printf( &quot;%s…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_change_user?rev=1361916183&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T23:03:03+02:00</dc:date>
        <title>mysql_change_user</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_change_user?rev=1361916183&amp;do=diff</link>
        <description>my_bool mysql_change_user(MYSQL *mysql, const char *user, const char *password, const char *db)


description of mysql_change_user

mysql_change_user is used to change the current user for the actual connection



#include &lt;stdio.h&gt; /* including standard library */ 
#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
MYSQL_ROW  row;
MYSQL_RES  *mysql_res; 

int main( void ){
char host[20];
char user[20];
char pass[20];
 
my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;username&quot;);
sprintf(p…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_commit?rev=1361919057&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T23:50:57+02:00</dc:date>
        <title>mysql_commit</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_commit?rev=1361919057&amp;do=diff</link>
        <description>my_bool mysql_commit(MYSQL *mysql)


description of mysql_commit

mysql_commit Commits the current transaction. 
The action of this function is subject to the value of the completion_type system variable. 

if the value of completion_type is 2, the server performs a release after terminating a transaction and closes the client connection. The client program should call mysql_close().</description>
    </item>
    <item rdf:about="https://code-reference.com/lua/codea/stargenerator/star.lua?rev=1708042326&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:06+02:00</dc:date>
        <title>lua:codea:stargenerator:star.lua</title>
        <link>https://code-reference.com/lua/codea/stargenerator/star.lua?rev=1708042326&amp;do=diff</link>
        <description>Star = class()

function Star:init(init)
    -- you can accept and set parameters here
    self.mx = 500
    self.my = 400
    if init == true then
        self.x = math.random(self.mx-10,self.mx+10)
        self.y = math.random(self.my-10,self.my+10)
        self.size = math.random(1,3)
    else
        self.x = math.random(1,1200)
        self.y = math.random(1,1200)
        self.size = math.random(1,6)
    end
    self.xspeed = math.random(1,10)
    self.yspeed = math.random(1,10)
    
    se…</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/string.h/strcmp?rev=1708041975&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:15+02:00</dc:date>
        <title>strcmp</title>
        <link>https://code-reference.com/c/string.h/strcmp?rev=1708041975&amp;do=diff</link>
        <description>#include &lt;string.h&gt;
//#include &lt;windows.h&gt; /* uncomment this for Windows */

    int strcmp (const char *s1, const char *s)


Description

strcmp Compares 2 C strings.

If both strings are identical, the return value of strcmp is 0. 

If the string s1 less than s2, the return value is less than 0, 

and s1 is greater than s2, then the return value greater than 0</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsstring.h/caseinsensitivecompare?rev=1708042344&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:24+02:00</dc:date>
        <title>caseInsensitiveCompare</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsstring.h/caseinsensitivecompare?rev=1708042344&amp;do=diff</link>
        <description>-(NSComparisonResult)caseInsensitiveCompare:(NSString *)string;  


Returns the result of invoking compare:options: with NSCaseInsensitiveSearch as the only option.

ObjC Sourcecode Example

  
    NSString *myString1=@&quot;HELLO WORLD&quot;;
    NSString *myString2=@&quot;hello world&quot;;
        
    if([myString1 caseInsensitiveCompare:myString2]==NSOrderedSame){
            
            NSLog(@&quot;similar&quot;);  
        }
    else{
            
            NSLog(@&quot;dissimilar&quot;);          
        }

      /* 
    …</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/control_structures/if?rev=1708041977&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:17+02:00</dc:date>
        <title>if</title>
        <link>https://code-reference.com/objective-c/control_structures/if?rev=1708041977&amp;do=diff</link>
        <description>if ( condition == true ){
    command;    
    }


if example 1 objective c


    NSString *string = @&quot;i wouldn't want to go anywhere without my wonderful towel&quot;;
    
    if ([string isEqualToString:@&quot;i wouldn't want to go anywhere without my wonderful towel&quot;]) {
        NSInteger a=42;
        NSLog(@&quot;correct %i&quot;, a);
    }
    
    else if ([string isEqualToString:@&quot;42&quot;]) {
        NSLog(@&quot;Sorry but the answer is not correct&quot;);
    }</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsnumber.h/isequaltonumber?rev=1708042345&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:25+02:00</dc:date>
        <title>isEqualToNumber</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsnumber.h/isequaltonumber?rev=1708042345&amp;do=diff</link>
        <description>- (BOOL)isEqualToNumber:(NSNumber *)number;
 


Returns a Boolean value that indicates whether the receiver and a given number are equal.

ObjC Sourcecode Example



    NSNumber *myBoolNumberYES = [NSNumber numberWithBool:YES];
    NSNumber *myBoolNumberNO = [NSNumber numberWithBool:NO];
    
    NSNumber *myIntNumber2_a = [NSNumber numberWithInt:2];
    NSNumber *myIntNumber2_b = [NSNumber numberWithFloat:2.0];
    
    if ([myBoolNumberNO isEqualToNumber:myBoolNumberYES]) {
        NSLog(@&quot;NU…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h/system?rev=1708041889&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:49+02:00</dc:date>
        <title>system</title>
        <link>https://code-reference.com/c/stdlib.h/system?rev=1708041889&amp;do=diff</link>
        <description>#include &lt;stdlib.h&gt;
     int system(const char *string);


system calls a command on the shell

system c code example


/* 
 * system example code
 * http://code-reference.com/c/stdlib.h/system
 */
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
 
int main (void)
{
  char * command = &quot;uname -a&quot;;
  
  int cmd = system( command );
 
  if( cmd == -1 ) { printf( &quot;Error while initalize system command.\n&quot;); }
  else if( cmd &gt; 0 )   { printf( &quot;command return value  %d.\n&quot;, cmd ); }
  else  printf( &quot;success\n&quot; )…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_error?rev=1362006439&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-28T00:07:19+02:00</dc:date>
        <title>mysql_error</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_error?rev=1362006439&amp;do=diff</link>
        <description>const char *mysql_error(MYSQL *mysql)


description of mysql_error

provides the error description of the last failed function. the function was executed successfully, it returns an empty string


#include &lt;stdio.h&gt; /* including standard library */ 
#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
MYSQL_RES *result;
int main( void ){
char host[20];
char user[20];
char pass[20];

my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;username&quot;);
sprintf(pass,&quot;password&quot;);
 
if (my == NULL ) {
pr…</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/preprocessor?rev=1358518398&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-18T15:13:18+02:00</dc:date>
        <title>Preprocessor</title>
        <link>https://code-reference.com/c/preprocessor?rev=1358518398&amp;do=diff</link>
        <description>#define
    #include
    #endif
    #ifdef
    #if
    #else
    #error
    #warning
    #pragma
    #ifndef
    #undef</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h/realloc?rev=1708041890&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:50+02:00</dc:date>
        <title>realloc</title>
        <link>https://code-reference.com/c/stdlib.h/realloc?rev=1708041890&amp;do=diff</link>
        <description>realloc


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


description

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

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

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

If the new size is larger, the contents of the newly a…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/examples/xlog?rev=1708041979&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:19+02:00</dc:date>
        <title>XLog for Objective-C</title>
        <link>https://code-reference.com/objective-c/examples/xlog?rev=1708041979&amp;do=diff</link>
        <description>add this code to your App-Prefix.pch


/**
 XLog a working version 
 source: http://code-reference.com
 */

/* remove the // to turn off Logs */
//#define RELEASE_MODE 1

#ifdef RELEASE_MODE
#define XLog(...)
#else

#define XLog(fmt, ...) NSLog(@&quot;%s line:%d &quot; fmt, __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#endif</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h/bsearch?rev=1708041888&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:48+02:00</dc:date>
        <title>bsearch</title>
        <link>https://code-reference.com/c/stdlib.h/bsearch?rev=1708041888&amp;do=diff</link>
        <description>bsearch


    #include &lt;stdlib.h&gt;
    void *bsearch(const void *key, const void *base, size_t nitems, size_t size, int (*compare)(const void *, const void *));


key     - The element that is searched for

base    - pointer to the first element of the array to be searched

nitems  - number of elements in the array

size    - size of a single element

compare - comparison function to compare two elements together.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fopen?rev=1430730823&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-05-04T11:13:43+02:00</dc:date>
        <title>fopen</title>
        <link>https://code-reference.com/c/stdio.h/fopen?rev=1430730823&amp;do=diff</link>
        <description>#include &lt;stdio.h&gt; /* including standard library */
//#include &lt;windows.h&gt; /* uncomment this for Windows */

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


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


    void clearerr(FILE *stream);


Description

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

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

clearerr C Sourcecode Example


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


int main( void )
{
  FILE *handle;
  ha…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/string.h/strchr?rev=1420913459&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-01-10T19:10:59+02:00</dc:date>
        <title>strchr</title>
        <link>https://code-reference.com/c/string.h/strchr?rev=1420913459&amp;do=diff</link>
        <description>char *strchr(const char *str, int c);


 strchr finds the first occurrence of a character and return a pointer to it.

C Sourcecode Example


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

#include &lt;string.h&gt;

int main( void ) {
char *ptr;
char string[] = &quot;Find the first occurrence of a character and count it !&quot;;
if( strchr(string,'o') == NULL )
  printf(…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_affected_rows?rev=1361914596&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T22:36:36+02:00</dc:date>
        <title>mysql_affected_rows</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_affected_rows?rev=1361914596&amp;do=diff</link>
        <description>my_ulonglong mysql_affected_rows(MYSQL *mysql)


description of mysql_affected_rows

Returns the number of the last UPDATE , DELETE, INSERT. Can be called for UPDATE, DELETE, or INSERT statements directly to mysql_query(). In SELECT statements, mysql_affected_rows() works like mysql_num_rows().</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_real_connect?rev=1708042327&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:07+02:00</dc:date>
        <title>mysql_real_connect</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_real_connect?rev=1708042327&amp;do=diff</link>
        <description>#include &lt;mysql/mysql.h&gt;
    MYSQL *mysql_real_connect( MYSQL *mysql,
                               const char *host,
                               const char *user,
                               const char *password,
                               const char *database,
                               unsigned int port,
                               const char *unix_socket,
                               unsigned int client_flag );</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_close?rev=1359920392&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-03T20:39:52+02:00</dc:date>
        <title>mysql_close</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_close?rev=1359920392&amp;do=diff</link>
        <description>void mysql_close(MYSQL *mysql);


description of mysql_close

close a previously opened connection

and deallocates the connection handle pointet to mysql

if a pointer was set before from mysql_init



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

#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
 
int main( void ){
char host[20];
char user[20];
char pass[20];
 
my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;root&quot;);
sprintf…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/fclose?rev=1708041942&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:42+02:00</dc:date>
        <title>fclose</title>
        <link>https://code-reference.com/c/stdio.h/fclose?rev=1708041942&amp;do=diff</link>
        <description>fclose


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

    int fclose( FILE *stream );


Description

Close the current stream / file

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

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

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

The space i…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_get_proto_info?rev=1361888088&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T15:14:48+02:00</dc:date>
        <title>mysql_get_proto_info</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_get_proto_info?rev=1361888088&amp;do=diff</link>
        <description>unsigned int mysql_get_proto_info(MYSQL *mysql)


description of mysql_get_proto_info

returns Protocol Version of current connection

compile with gcc mysql_get_host_info.c -o mysql_get_host_info `mysql_config –cflags –libs` -Wall 


#include &lt;stdio.h&gt; /* including standard library */ 
#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
 
int main( void ){
char host[20];
char user[20];
char pass[20];
 
my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;user&quot;);
sprintf(pass,&quot;pass&quot;);
 
if (my …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_init?rev=1359920158&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-03T20:35:58+02:00</dc:date>
        <title>mysql_init</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_init?rev=1359920158&amp;do=diff</link>
        <description>MYSQL *mysql_init(MYSQL *mysql)


description of mysql_init

allocates / initializes a MYSQL object and returns a new object


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

#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
 
int main( void ){
char host[20];
char user[20];
char pass[20];
 
my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;root&quot;);
sprintf(pass,&quot;yourpass&quot;);
 
if (my == NULL ) {
printf(&quot;Cant initalisize MySQL\n&quot;);
…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_autocommit?rev=1361915690&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T22:54:50+02:00</dc:date>
        <title>mysql_autocommit</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_autocommit?rev=1361915690&amp;do=diff</link>
        <description>my_bool mysql_autocommit(MYSQL *mysql, my_bool mode)


description of mysql_autocommit

mysql_autocommit set the autocommit

0 is off

1 is on


compile with gcc mysql_autocommit.c -o mysql_autocommit `mysql_config –cflags –libs` -Wall 


#include &lt;stdio.h&gt; /* including standard library */ 
#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
MYSQL_ROW  row;
MYSQL_RES  *mysql_res; 

int main( void ){
char host[20];
char user[20];
char pass[20];
 
my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(us…</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/mysql/mysql.h/mysql_fetch_fields?rev=1362096452&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-01T01:07:32+02:00</dc:date>
        <title>mysql_fetch_fields</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_fetch_fields?rev=1362096452&amp;do=diff</link>
        <description>MYSQL_FIELD *mysql_fetch_fields(MYSQL_RES *result) 


description of mysql_fetch_fields

mysql_fetch_fields provides an array of information about the fields in a amount of result


#include &lt;stdio.h&gt; /* including standard library */ 
#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
MYSQL_RES *result;
MYSQL_FIELD *fields;

int main( void )
{

char host[20];
char user[20];
char pass[20];

my = mysql_init(NULL);

sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;username&quot;);
sprintf(pass,&quot;password&quot;);
 
if (my == NULL …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_errno?rev=1362005790&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-27T23:56:30+02:00</dc:date>
        <title>mysql_errno</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_errno?rev=1362005790&amp;do=diff</link>
        <description>unsigned int mysql_errno(MYSQL *mysql)


description of mysql_errno

returns the error number for the last unsuccessful running function. if the function is successful, it returns 0.
in case of an error the error number and the type of error appears</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h/calloc?rev=1708041889&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:49+02:00</dc:date>
        <title>calloc</title>
        <link>https://code-reference.com/c/stdlib.h/calloc?rev=1708041889&amp;do=diff</link>
        <description>#include &lt;stdlib.h&gt;
    void *calloc(size_t nitems, size_t size); 


description

The calloc() function shall allocate unused space for an array of nelem elements each of whose size in bytes is elsize. 

The space shall be initialized to all bits 0.



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

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

pointer to any type of object and then used…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/control_structures/for?rev=1708041976&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:16+02:00</dc:date>
        <title>for</title>
        <link>https://code-reference.com/objective-c/control_structures/for?rev=1708041976&amp;do=diff</link>
        <description>syntax


for (initialization; test; continued) statement;

or easier

for (start value; end value; continued) {
    statement;
}


for example objective c


        NSInteger a;
        for (a=0;a&lt;=99;a++) {
            if (a &lt; 42 || a &gt; 42) {
                NSLog(@&quot;what ? %i&quot;, a);
            } else {
                NSLog(@&quot;correct ;)&quot;);
            }
        }</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_get_server_info?rev=1361887552&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T15:05:52+02:00</dc:date>
        <title>mysql_get_server_info</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_get_server_info?rev=1361887552&amp;do=diff</link>
        <description>const char *mysql_get_server_info(MYSQL *mysql)


description of mysql_get_server_info

returns current remote server information 

compile with gcc mysql_get_server_info.c -o mysql_get_server_info `mysql_config –cflags –libs` -Wall 


#include &lt;stdio.h&gt; /* including standard library */ 
#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
 
int main( void ){
char host[20];
char user[20];
char pass[20];
 
my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;user&quot;);
sprintf(pass,&quot;pass&quot;);
 
if (my…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_dump_debug_info?rev=1362003839&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-27T23:23:59+02:00</dc:date>
        <title>mysql_dump_debug_info</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_dump_debug_info?rev=1362003839&amp;do=diff</link>
        <description>int mysql_dump_debug_info(MYSQL *mysql)


description of mysql_dump_debug_info

mysql_dump_debug_info writes debugging information for the current connection in the logfile of the servers. the user must have administrator rights

return 1 if success 0 otherwise</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_get_server_version?rev=1361888045&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T15:14:05+02:00</dc:date>
        <title>mysql_get_server_version</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_get_server_version?rev=1361888045&amp;do=diff</link>
        <description>unsigned long mysql_get_server_version(MYSQL *mysql)


description of mysql_get_server_version

mysql_get_server_version() returns the current version of your mysql client usualy returns the number in the following format XXYYZZ 
XX mainversion

YY release level

ZZ current version number</description>
    </item>
    <item rdf:about="https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-07-31T22:37:05+02:00</dc:date>
        <title>Formatting Syntax</title>
        <link>https://code-reference.com/wiki/syntax?rev=1501533425&amp;do=diff</link>
        <description>DokuWiki supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing the Edit this page button at the top or bottom of the page. If you want to try something, just use the playground page. The simpler markup is easily accessible via quickbuttons, too.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_data_seek?rev=1362002576&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-27T23:02:56+02:00</dc:date>
        <title>mysql_data_seek</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_data_seek?rev=1362002576&amp;do=diff</link>
        <description>void mysql_data_seek(MYSQL_RES *result, my_ulonglong offset)


description of mysql_data_seek

mysql_data_seek find any row in a result set.

the offset value is a row number from 0 to mysql_num_rows (result) -1.
As required for this feature is that the result set structure contains the entire result set, can mysql_data_seek() may be used only in conjunction with mysql_store_result(), not with mysql_use_result().</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_character_set_name?rev=1708042333&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:13+02:00</dc:date>
        <title>mysql_character_set_name</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_character_set_name?rev=1708042333&amp;do=diff</link>
        <description>const char *mysql_character_set_name(MYSQL *mysql)


description of mysql_character_set_name

mysql_character_set_name returns the default character set for the current connection.


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

int main( void ){
char host[20];
char user[20];
char pass[20];
 
my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;username&quot;);
sprintf(pass,&quot;password&quot;);
 
if (my == NULL ) {
printf(&quot;Cant initalisize MySQL\n&quot;…</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/control_structures/return?rev=1708041847&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:07+02:00</dc:date>
        <title>return</title>
        <link>https://code-reference.com/arduino/control_structures/return?rev=1708041847&amp;do=diff</link>
        <description>Terminate a function and return a value from a function to the calling function, if desired.

Syntax:

return;

return value;     both forms are valid

==== Parameters   ====

value: any variable or constant type

==== Examples:   ====

A function to compare a sensor input to a threshold
&lt;code arduino&gt; int checkSensor(){       
    if (analogRead(0) &gt; 400) {
        return 1;
    else{
        return 0;
    }
}&lt;/code&gt;

The return keyword is handy to test a section of code without having to “comm…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_debug?rev=1362003170&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-27T23:12:50+02:00</dc:date>
        <title>mysql_debug</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_debug?rev=1362003170&amp;do=diff</link>
        <description>void mysql_debug(const char *debug) 


description of mysql_debug

Use this to set debugging if the client was compiled with debugging. The set of options used by default is 'd:t:o,logname'. See the table at the end of the list of options for the mysqldump utility for an explanation of these flags and others that may be used.</description>
    </item>
    <item rdf:about="https://code-reference.com/arduino/structure/loop?rev=1708041868&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:28+02:00</dc:date>
        <title>Example</title>
        <link>https://code-reference.com/arduino/structure/loop?rev=1708041868&amp;do=diff</link>
        <description>!loop()

After creating a setup() function, which initializes and sets the initial values, the loop() function does precisely what its name suggests, and loops consecutively, allowing your program to change and respond.  Use it to actively control the Arduino board.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_info?rev=1361892865&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T16:34:25+02:00</dc:date>
        <title>mysql_info</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_info?rev=1361892865&amp;do=diff</link>
        <description>const char *mysql_info(MYSQL *mysql)


description of mysql_info

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

compile with gcc mysql_info.c -o mysql_info `mysql_config –cflags –libs` -Wall</description>
    </item>
    <item rdf:about="https://code-reference.com/c/setjmp.h/longjmp?rev=1360003254&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T19:40:54+02:00</dc:date>
        <title>longjmp</title>
        <link>https://code-reference.com/c/setjmp.h/longjmp?rev=1360003254&amp;do=diff</link>
        <description>void longjmp (jmp_buf env, int val);


description of longjmp

get program state from the stack, useful for debugging.


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

void testit(int);
jmp_buf program_state;

static int count;
void testit(int count) {

   count++; // set counter +1 but it will never reach 2
   printf(&quot;count is now %i\n&quot;, count);
   }

int main(void) {
   count = 0;
   printf(&quot;count starts with: %i\n&quot;, count);

   if(setjmp(program_state) == 0) {
       printf(&quot;save program state in th…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/string.h/strcpy?rev=1396667049&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-04-05T05:04:09+02:00</dc:date>
        <title>strcpy</title>
        <link>https://code-reference.com/c/string.h/strcpy?rev=1396667049&amp;do=diff</link>
        <description>#include &lt;string.h&gt;
char *strcpy(char *str1, const char *str2);


Description

strcpy copy a c string pointed by str2 into the array pointed by str1 including the terminating null character.

strcpy C Example Code


/* 
 * strcpy c example code
 * http://code-reference.com/c/string.h/strcpy 
 */
#include &lt;stdio.h&gt; /* including standard library */
#include &lt;string.h&gt;
 
int main( void ) 
{
  char string[] = &quot;copy me&quot;; /* the size of the array is calculated automatically */
  char string2[20];

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


description

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

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

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

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



Any use of …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/string.h/memchr?rev=1708041974&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:14+02:00</dc:date>
        <title>c:string.h:memchr</title>
        <link>https://code-reference.com/c/string.h/memchr?rev=1708041974&amp;do=diff</link>
        <description>void *memchr(const void *str, int c, size_t n);


 memchr finds the firs occurrence of a character and return a pointer to it.


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

#include &lt;string.h&gt;

int main( void ) {

char string[] = &quot;Find the firs occurrence of a character and count it !&quot;;
if( memchr(string,'o',strlen(string)) == NULL ) {
     printf( &quot;Cant find o character\n&quot; ); 
   }
    else {
      printf( &quot;found character o at po…</description>
    </item>
    <item rdf:about="https://code-reference.com/objective-c/foundation.framework/nsstring.h/isequaltostring?rev=1708042344&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:12:24+02:00</dc:date>
        <title>isEqualToString</title>
        <link>https://code-reference.com/objective-c/foundation.framework/nsstring.h/isequaltostring?rev=1708042344&amp;do=diff</link>
        <description>isEqualToString

    
   - (BOOL)isEqualToString:(NSString *)aString;   


Returns a Boolean value that indicates whether a given string is equal to the receiver using an literal Unicode-based comparison.

ObjC Sourcecode Example

 
    NSString *myString1=@&quot;Hello World&quot;;
    NSString *myString2=@&quot;Hello World&quot;;
          
        if([myString1 isEqualToString:myString2]){
        
            NSLog(@&quot;similar&quot;);
        }
        else{
        
            NSLog(@&quot;dissimilar&quot;);
        }
        …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/setjmp.h/setjmp?rev=1360003391&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T19:43:11+02:00</dc:date>
        <title>setjmp</title>
        <link>https://code-reference.com/c/setjmp.h/setjmp?rev=1360003391&amp;do=diff</link>
        <description>int setjmp ( jmp_buf env );


description of setjmp

save program state / environment to the stack for a longjump useful for debugging.


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

void testit(int);
jmp_buf program_state;

static int count;
void testit(int count) {

   count++; // set counter +1 but it will never reach 2
   printf(&quot;count is now %i\n&quot;, count);
   }

int main(void) {
   count = 0;
   printf(&quot;count starts with: %i\n&quot;, count);

   if(setjmp(program_state) == 0) {
       printf(&quot;save pr…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/keywords/else?rev=1708041962&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:02+02:00</dc:date>
        <title>c:keywords:else</title>
        <link>https://code-reference.com/c/keywords/else?rev=1708041962&amp;do=diff</link>
        <description>see else</description>
    </item>
    <item rdf:about="https://code-reference.com/java/lang/object/equals?rev=1365581557&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-10T10:12:37+02:00</dc:date>
        <title>equals</title>
        <link>https://code-reference.com/java/lang/object/equals?rev=1365581557&amp;do=diff</link>
        <description>Compares object and indecates if they equal


equals(Object); 

return value: boolean true/false


equals Example in java



String a = &quot;42&quot;;
String b = &quot;144&quot;;

if ( a.equals(b) ) { 
    
    System.out.println(b+&quot; is the answer&quot;);
} else {

    System.out.println(b+&quot; is probably not the answer&quot;);
}</description>
    </item>
    <item rdf:about="https://code-reference.com/c/wchar.h/fgetwc?rev=1708041932&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:32+02:00</dc:date>
        <title>fgetwc</title>
        <link>https://code-reference.com/c/wchar.h/fgetwc?rev=1708041932&amp;do=diff</link>
        <description>fgetwc


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


fgetwc Description

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

C Sourcecode Example


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

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

    if (!stream) {
        printf(&quot;Co…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/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/arduino/variable_scope_and_qualifiers/static?rev=1708041853&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:13+02:00</dc:date>
        <title>Static</title>
        <link>https://code-reference.com/arduino/variable_scope_and_qualifiers/static?rev=1708041853&amp;do=diff</link>
        <description>The static keyword is used to create variables that are visible to only one function. However unlike local variables that get created and destroyed every time a function is called, static variables persist beyond the function call, preserving their data between function calls.</description>
    </item>
    <item rdf:about="https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-18T09:11:21+02:00</dc:date>
        <title>for</title>
        <link>https://code-reference.com/java/loops/for?rev=1366269081&amp;do=diff</link>
        <description>for ( init; condition; increment ){
    statements;    
    }


description of for

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

example 1 of for in java




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


description of mysql_fetch_field

mysql_fetch_field provides a structure MYSQL_FIELD with information about the current field of quantitative results and advance the field pointer to the next field</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_escape_string?rev=1362010868&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-28T01:21:08+02:00</dc:date>
        <title>mysql_escape_string</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_escape_string?rev=1362010868&amp;do=diff</link>
        <description>unsigned long mysql_escape_string(MYSQL *mysql, char *to, const char *from, unsigned long length)


description of mysql_escape_string

mysql_escape_string escape a mysql string

” will be escaped
; will not be escaped

! mysql_escape_string is outdated use mysql_real_escape_string instead !</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_create_db?rev=1361919366&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T23:56:06+02:00</dc:date>
        <title>mysql_create_db</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_create_db?rev=1361919366&amp;do=diff</link>
        <description>int mysql_create_db(MYSQL *mysql, const char *db)


description of mysql_create_db

creates the database named by the db parameter. 

mysql_create_db deprecated use mysql_query() to create a database


#include &lt;stdio.h&gt; /* including standard library */ 
#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
MYSQL_ROW  row;
MYSQL_RES  *mysql_res; 

int main( void ){
char host[20];
char user[20];
char pass[20];
unsigned long numrows = 0;

my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;usernam…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_get_host_info?rev=1361886971&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-26T14:56:11+02:00</dc:date>
        <title>mysql_get_host_info</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_get_host_info?rev=1361886971&amp;do=diff</link>
        <description>const char *mysql_get_host_info(MYSQL *mysql)


description of mysql_get_host_info

returns the mysql host information

compile with gcc mysql_get_host_info.c -o mysql_get_host_info `mysql_config –cflags –libs` -Wall 


#include &lt;stdio.h&gt; /* including standard library */ 
#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
 
int main( void ){
char host[20];
char user[20];
char pass[20];
 
my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;user&quot;);
sprintf(pass,&quot;pass&quot;);
 
if (my == NULL ) {
pri…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/mysql/mysql.h/mysql_drop_db?rev=1362003386&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-27T23:16:26+02:00</dc:date>
        <title>mysql_drop_db</title>
        <link>https://code-reference.com/c/mysql/mysql.h/mysql_drop_db?rev=1362003386&amp;do=diff</link>
        <description>int mysql_drop_db(MYSQL *mysql, const char *db)


description of mysql_drop_db

mysql_drop_db deletes the specified database in the db parameter.
this function is obsolete. Please instead use mysql_query () to issue an SQL DROP DATABASE statement.


#include &lt;stdio.h&gt; /* including standard library */ 
#include &lt;mysql/mysql.h&gt;
 
MYSQL *my;
 
int main( void ){
char host[20];
char user[20];
char pass[20];

my = mysql_init(NULL);
 
 
sprintf(host,&quot;localhost&quot;);
sprintf(user,&quot;username&quot;);
sprintf(pass,…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdlib.h/malloc?rev=1708041892&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:04:52+02:00</dc:date>
        <title>malloc</title>
        <link>https://code-reference.com/c/stdlib.h/malloc?rev=1708041892&amp;do=diff</link>
        <description>#include &lt;stdlib.h&gt;
    void *malloc(size_t size);


description

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



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

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

to any type of object and then used to access such an object in the space allocated…</description>
    </item>
    <item rdf:about="https://code-reference.com/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/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/conio.h/gettext?rev=1360369313&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-09T01:21:53+02:00</dc:date>
        <title>gettext</title>
        <link>https://code-reference.com/c/conio.h/gettext?rev=1360369313&amp;do=diff</link>
        <description>int gettext(int left, int top, int right, int bottom, void *dst)


description of gettext

copy text from a text mode window in memory.

stores the text content of the rectangular area of ​​the screen, which is defined by left, top, right and bottom, and also stores it in the storage area pointed to by dst.
all coordinates are absolute screen coordinates, not window-based. The top left corner has coordinates (1,1). sequentially reads the contents of the rectangle from the left to right and from …</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/wchar.h/fgetws?rev=1708041934&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:34+02:00</dc:date>
        <title>fgetws</title>
        <link>https://code-reference.com/c/wchar.h/fgetws?rev=1708041934&amp;do=diff</link>
        <description>fgetws


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


Description

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

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

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

does not exceed “length - 1”. 



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

If an error or EOF occurs, the function returns NULL inste…</description>
    </item>
    <item rdf:about="https://code-reference.com/c/graphics.h/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/c/string.h/strcspn?rev=1708041975&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:06:15+02:00</dc:date>
        <title>strcspn</title>
        <link>https://code-reference.com/c/string.h/strcspn?rev=1708041975&amp;do=diff</link>
        <description>#include &lt;string.h&gt;
//#include &lt;windows.h&gt; /* uncomment this for Windows */

    size_t strcspn(const char *str1, const char *str2);


Description

strcspn find the first occurrence of any character in str2

strcspn C Example Code


/* 
 * strcspn c example code
 * http://code-reference.com/c/string.h/strcspn 
 */
#include &lt;stdio.h&gt;
#include &lt;string.h&gt;
#include &lt;stdlib.h&gt; /* for strlen */
int main ( void )
{
  char string[] = &quot;te=st@code-reference.com&quot;;
  char search_keys[] = &quot;?! ,$%:;&amp;/()=&quot;;
  …</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/feof?rev=1708041940&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-02-16T01:05:40+02:00</dc:date>
        <title>feof</title>
        <link>https://code-reference.com/c/stdio.h/feof?rev=1708041940&amp;do=diff</link>
        <description>int feof(FILE *stream);


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

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

Returns non-zero if end-of-file indicator is set for stream stream.</description>
    </item>
    <item rdf:about="https://code-reference.com/c/stdio.h/ferror?rev=1374831141&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-07-26T11:32:21+02:00</dc:date>
        <title>ferror</title>
        <link>https://code-reference.com/c/stdio.h/ferror?rev=1374831141&amp;do=diff</link>
        <description>ferror


    int ferror(FILE *stream);


the function ferror tests the error indicator for the stream pointed to by stream, returning non-zero if it is set. The error indicator can only be reset by the clearerr function.
Returns non-zero if error indicator is set for stream stream.</description>
    </item>
</rdf:RDF>
