a3: Anzahl Zeichen korrigiert

This commit is contained in:
Johannes Theiner 2018-11-15 11:14:39 +01:00
parent 0c6b5867c8
commit 71646c46ab
1 changed files with 1 additions and 1 deletions

View File

@ -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