Am 27.03.2019 um 02:04 schrieb Ncurses Scanw Error:
Every time I try to use the ncurses print in language D of this error
scanw ("% d", & number);
Error: function deimos.ncurses.curses.scanw (char fmt, ...) is not callable using argument types (string, int )
It seems like the signature of scanw
in libcurl is missing the const
qualifier, otherwise the code above should work as far as I can see.
Casting to char*
should work, though: scanw(cast(const(char)*)"%d".ptr, &number)
BTW, the D.learn group would be better suited for this kind of question:
https://forum.dlang.org/group/learn