bounds.c
changeset 2 35178e8b7de3
parent 1 3b5b7a4bf446
child 3 2fdec3c1da6a
equal deleted inserted replaced
1:3b5b7a4bf446 2:35178e8b7de3
    19     printf("-----------------------------------------------\n\n");
    19     printf("-----------------------------------------------\n\n");
    20 
    20 
    21     // text bis end ausgeben
    21     // text bis end ausgeben
    22     for (step = &etext; step < &end; step++) {
    22     for (step = &etext; step < &end; step++) {
    23 	printf("%p: ", step);
    23 	printf("%p: ", step);
    24 	if (isalnum(*step)) putc(*step, stdout);
    24 	if (isalnum(*step)) putchar(*step);
    25 	else printf("<%02x>", *step);
    25 	else printf("<%02x>", *step);
    26 	puts("");
    26 	putchar('\n');
    27     }
    27     }
    28 
    28 
    29     //alles nach end ausgeben:
    29     //alles nach end ausgeben:
    30     step = &end;
    30     step = &end;
    31     while (1) {
    31     while (1) {
    32 	printf("%p: ", step);
    32 	printf("%p: ", step);
    33 	if (isalnum(*step)) putc(*step, stdout);
    33 	if (isalnum(*step)) putchar(*step);
    34 	else printf("<%02x>", *step);
    34 	else printf("<%02x>", *step);
    35 	puts("");
    35 	putchar('\n');
    36 	step++;
    36 	step++;
    37     }
    37     }
    38 
    38 
    39     //damit der compiler das nicht weg optimiert
    39     //damit der compiler das nicht weg optimiert
    40     printf("%s%d", value_string, value_int);
    40     printf("%s%d", value_string, value_int);