view pads2gpcb/util.c @ 153:c147a730271f

KWH020ST23-F01.fp corrections: 1) Y geometry for the solder pads was wrong 2) add silk dots matching alignment holes in the FPC tail
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 24 Jun 2021 06:38:02 +0000
parents 455a0051f9d2
children
line wrap: on
line source

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>

char *
savestr(srcstr)
	char *srcstr;
{
	char *buf;

	buf = malloc(strlen(srcstr) + 1);
	if (!buf) {
		perror("malloc in savestr");
		exit(1);
	}
	strcpy(buf, srcstr);
	return(buf);
}