a3: Anzahl Zeichen korrigiert
This commit is contained in:
parent
0c6b5867c8
commit
71646c46ab
|
@ -62,7 +62,7 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
memdump((unsigned char *) argv[0]);
|
memdump((unsigned char *) argv[0]);
|
||||||
|
|
||||||
printf("\tLaenge der Zeichenkette (inkl \\0): %i Byte(s)\n", (int) strlen(argv[1]));
|
printf("\tLaenge der Zeichenkette (inkl \\0): %i Byte(s)\n", (int) strlen(argv[1]) +1);
|
||||||
printf("\tErsetzen: '%c' mit '%c'\n", *argv[2], *argv[3]);
|
printf("\tErsetzen: '%c' mit '%c'\n", *argv[2], *argv[3]);
|
||||||
|
|
||||||
unsigned char *copy = malloc(4 * 16 * sizeof(char));//allocate memory for all chars
|
unsigned char *copy = malloc(4 * 16 * sizeof(char));//allocate memory for all chars
|
||||||
|
|
Loading…
Reference in New Issue