Using C function in Tango - Simple solution?

2010-02-24 Thread Fabian Classen
Hi I am new in D. I've the following problem. I want to use a old function out of the C programming language. I'm using D, with the dmd compiler, and the Tango lib. My dirty solution is the following: code version (Tango) extern (C) int getchar(); void main() { char quit = '\0';

Re: Using C function in Tango - Simple solution?

2010-02-24 Thread Fabian Classen
Am Wed, 24 Feb 2010 19:58:59 + schrieb Robert Clipsham: On 24/02/10 19:46, Fabian Classen wrote: Hi I am new in D. I've the following problem. I want to use a old function out of the C programming language. I'm using D, with the dmd compiler, and the Tango lib. My dirty solution is the