I want to share certain C string constants across multiple c files. The constants span multiple lines for readability:
const char *QUERY = \"SELECT a,b,c \"
In some .c file, write what you've written. In the appropriate .h file, write
extern const char* QUERY; //just declaration
Include the .h file wherever you need the constant
No other good way :) HTH