FreeCalypso > hg > ueda-linux
view pads2gpcb/util.c @ 71:a3d47129ebdc
pads2gpcb: implemented mirroring and rotation of instantiated parts
| author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
|---|---|
| date | Mon, 01 Feb 2016 00:13:20 +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); }
