This replaces the verbose and error prone pattern of calling
str = malloc(strlen("some value is 12345678"));
sprintf(str, "some value is %d", val)
with
str = aprintf(some value is %d", val);
This is similar to the GNU function asprintf() but returns the pointer
instead of assigning it to the first parameter. It uses the existing
gpi_vsnprintf(fmt, va_list) function.
* remove trailing whitespace in *.c/*.h files
This is now 'enforced' via .editoconfig. Do it here once to prevent random
ws changes during editing.
* Cleanup intra-line whitespace in large submenu tables in config.c
Consistently use spaces to layout columns, to make it independent of tab
size.
---------
Co-authored-by: axxel <awagger@web.de>