This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Custom getchar

Is there a way to prevent getchar from echoing the input characters? I tried to write my own implementation of getchar, but the linker doesn't seem to let me do that.
- Mike

Parents Reply Children
  • It works for me as soon as I comment out all references to scanf. When scanf gets linked to the program, it references getchar, this is where the trouble starts. There is no point for me in having custom getchar without scanf.
    Everything is fine with _getkey and putchar. Obviously, these names are recognized by the linker and treated differently from other symbols.
    - Mike