Why isn't this in the standard C library, I wonder.
Signed-off-by: Michel Pollet <buserror@gmail.com>
You should have received a copy of the GNU General Public License
along with simavr. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _GNU_SOURCE /* for strdupa */
+
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
DEFINE_FIFO(avr_vcd_log_t, avr_vcd_fifo);
+#define strdupa(__s) strcpy(alloca(strlen(__s)+1), __s)
+
static void
_avr_vcd_notify(
struct avr_irq_t * irq,