Hi Uz, consider the following program: ------------------- #include <stdio.h> #include <conio.h> #include <string.h> char hello[] = "Hi there!\n"; void myputs(char *string) { printf("string before: %p\n", string); /*while (*string) putchar(*string++);*/ while (*string) cputc(*string++); /*while (*string) printf("%c", *string++);*/ printf("\nstring after: %p\n", string); } int main(void) { myputs(hello); return 0; } ------------------- myputs() doesn't print the output string and the "string after" value is way off. The same problem occurs if I use putchar instead of cputc to do the output. It works fine if I use printf to do the output. regards, chris ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Sun Oct 10 00:55:50 2004
This archive was generated by hypermail 2.1.8 : 2004-10-10 00:55:59 CEST