Follow-up Comment #3, bug #22026 (project freeciv):
'const struct foo *' means a pointer to a read-only structure. The pointer can
be reassigned, but you cannot write to the memory.
'struct foo *const' means a constant pointer to a structure which can
If we were using the incorrect alternative, I bet that gcc would have
complained. So, it is safe to define this variable at the function scope.
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list