On 06/06/18 21:38, DJ Delorie wrote:
+ snprintf (mcu_name, sizeof (mcu_name) - 1, "__%s__", target_mcu); + start_upper = 0;Can optimize this to 2 :-)Otherwise OK.
Ah yes. Could also do: - for (i = start_upper; i < strlen (mcu_name); i++) + for (i = start_upper; i < strlen (mcu_name) - 2; i++)