AMGStringInC modified to use static (instead of dynamic) memory allocation.