A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4751

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/Jenja/www/mcpaste.de/www/system/core/Exceptions.php:272)

Filename: view/raw.php

Line Number: 2

// Programmrahmen zur Aufgabe Termin5 // Aufgabe 1 //************************************ // // von: Manfred Pester // vom: 06. August 2003 // letzte Änderung: 30. November 2004 // von: Manfred Pester // #include "ser_io.S" void routine(int, char *); int main(void) { char i; // Serielle initialisieren inits(); init_ser(); // CR und LF auf das Terminal ausgeben // putc('A'); putc (0xd); putc (0xa); // ein Zeichen von der seriellen abholen // i=getc(); // putc(i); // String ausgeben*/ char arr[12]; routine(0x80000003, arr); puts(arr); return 0; } void routine(int i, char * arr) { if(i==0) { arr[0]='0'; arr[1]= 0 ; return; } int count; int tmpi; tmpi = i; count = 0; char cache; int negative; negative = 0; if(i < 0 ) // Ist die Zahl negativ? { negative = 1; tmpi = tmpi * -1; i = i * -1; } while(tmpi > 0) // wie viele Stellen hat unsere Zahl? { tmpi = tmpi / 10; count++; } if(negative == 1) // Wenn sie negativ ist, eine Stelle mehr, an Stelle 0 kommt das - { count++; //chr[0] = '-'; } int tmpcount; tmpcount = count + 1; char chr[tmpcount]; // Array erstellen (+1 für 0 an die ende) chr[count] = 0; if(negative == 1) // Wenn sie negativ ist, eine Stelle mehr, an Stelle 0 kommt das - { chr[0] = '-'; } int j; j= count - 1; for(j;j-negative>=0;j--) // Achtung Achtung bei negativen Zahlen hier eine Veränderung! oder so... { cache = i%10; // Das hinterste Zeichen isolieren i = i/10; // Die Nächste Stelle nach ganz rechts chr[j] = cache + '0'; // und an die letzte Stelle des Arrays schreiben } j=0; for(j;j<11;j++) { arr[j] = chr[j]; } }

A PHP Error was encountered

Severity: 8192

Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior

Filename: database/DB_driver.php

Line Number: 1876