FreeCalypso > hg > ueda-linux
view pads2gpcb/util.c @ 94:73029295c4dd
ifctf-part-lib/uschem-symbols: added Si1032R.pinout and ipc-diode.pinout
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 24 Aug 2019 08:54:11 +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); }