FreeCalypso > hg > ueda-linux
diff pads2gpcb/parttype.c @ 65:2b71943a311b
pads2gpcb: PART section parsing implemented, compiles
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 31 Jan 2016 21:32:08 +0000 |
parents | 455a0051f9d2 |
children | ac13abc7dc0d |
line wrap: on
line diff
--- a/pads2gpcb/parttype.c Sun Jan 31 07:37:09 2016 +0000 +++ b/pads2gpcb/parttype.c Sun Jan 31 21:32:08 2016 +0000 @@ -186,3 +186,15 @@ process_one_parttype(); } } + +struct part_type * +find_parttype_by_name(name) + char *name; +{ + struct part_type *p; + + for (p = part_type_list; p; p = p->next) + if (!strcmp(p->name, name)) + break; + return(p); +}