This will look in path_to_file for lines enclosed as follows.
.lib nameThe lines inside the block will be read into the input deck being parsed, similar to the .include line.
... lines of SPICE text
.endl
The library file can contain any number of .lib blocks. The .lib block can itself contain .lib references. The text can be any valid WRspice input. The name is an arbitrary text token, which should be unique among the .lib blocks in a library file.
In /usr/stevew/spice/stuff/mylibrary:
.lib mosblock
m0 4 9 12 PSUB p1pvt l=0.25u w=2.4u
.endl
is equivalent to:
title line... more lines
m0 4 9 12 PSUB p1pvt l=0.25u w=2.4u
In WRspice, the keyword .splib is accepted as a synonym for .lib. This is for compatibility with Xic, which will replace .lib lines with the block of text from the library, but will pass .splib lines to SPICE, after converting ``.splib'' to ``.lib''.