pat_savpaseq(3)

ORIGIN

This software belongs to the ALLIANCE CAD system from the
CAO-VLSI team at MASI laboratory, Universite P. et M. Curie
4, place Jussieu ; 75252 PARIS Cedex 05 ; FRANCE
Fax: (33-1) 44.27.62.86 ; E-mail: cao-vlsi@masi.ibp.fr

NAME

pat_savpaseq - save pattern structures in a pattern description file

SYNOPSIS

int pat_savpaseq (name, ptseq, labelsiz)
char         *name  ;
struct paseq *ptseq ;
unsigned int  labelsiz;

PARAMETERS

name
    pattern file's name

ptseq
    pointer on a list of patterns' sequence

labelsiz
    length of the longest pattern's label

DESCRIPTION

pat_savpaseq produces a pattern file named name from a paseq structure.

For the first call, pat_savpaseq first opens a file (according to MBK_WORK_LIB and VH_PATSFX environment variables) named name. Then, the input-output declarations is produced followed by the pattern description.

For subsequent calls, the file is completed with the newly processed patterns. The file remains openned util the last subsequence is written into the file.

RETURN VALUES

pat_lodpaseq returns a non-zerovalue if an error has been occured.

EXAMPLE

#include <pat104.h>
#include <ppt104.h>
struct paseq *paseq_pnt = NULL;
while ((paseq_pnt != NULL) && (paseq_pnt->ENDFLG != 'Y'))
  {
  paseq_pnt = pat_lodpaseq ("my_sequence", paseq_pnt, 1000);
  ......
  pat_savpaseq ("result", paseq_pnt, 10);
  }

SEE ALSO

libpat(2), paseq(2), pat_addpaseq(2), pat_lodpaseq(3), mbkfopen(2), mbkenv(2)

BUGS

Please e-mail to cao-vlsi@masi.ibp.fr for bug report and suggestions.