|
From: | Pedro Palhoto Matos |
Subject: | printw: const char* |
Date: | Fri, 15 Nov 2002 15:01:01 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 |
Hello,I'm developing a program with ncurses and I am in the middle of checking everything I can via the compiler, through its warnings and I have stummbled on a feature or a bug of ncurses that I'm not sure why it is so.
The printw is declared as printw(char *fmt...); and in the curs_printw man page, it refers to printw as being analogous to printf.
As I compiled with the -Wwrite-strings option in gcc, I have got the warning "passing arg 1 of `printw' discards qualifiers from pointer target type". This doesn't happen to the printf function, because the first argument is const char *.
Is there any particular reason for this? Does printw alter the string? Thank you, Pedro Matos
[Prev in Thread] | Current Thread | [Next in Thread] |