gds-render/main.c

18 lines
338 B
C
Raw Normal View History

2018-05-07 13:27:50 +02:00
#include <stdio.h>
#include "gdsparse.h"
int main()
{
struct gds_library *libs;
unsigned int count = 0;
2018-05-07 15:17:29 +02:00
int i = 0;
2018-05-07 13:27:50 +02:00
parse_gds_from_file("/home/mari/Desktop/test.gds", &libs, &count);
2018-05-07 15:17:29 +02:00
printf("Lib count: %u\n", count);
for (i = 0; i < count; i++) {
printf("Lib %s: %d cells\n", libs[i].name, libs[i].cells_count);
}
2018-05-07 13:27:50 +02:00
return 0;
}