Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

filepath(3) [debian man page]

FILEPATH(3)						       MBK UTILITY FUNCTIONS						       FILEPATH(3)

NAME
filepath - return the whole search path of a file ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr SYNOPSYS
#include "mut.h" char *filepath(name, extension) char *name, *extension; PARAMETERS
name Name of the file to be search for extension File extension DESCRIPTION
filepath return the absolute path of a cell. This is useful for error messages, since the caller of mbk file functions is not able to specify explicitly which file it opened. Having such an information is also necessary when last modification times or access times are needed, as for consistency checks. The file is searched through the environment variable MBK_WORK_LIB(1), and if not found, through MBK_CATA_LIB(1) in the user defined order. The file to be searched is called name.extension, if extension is not NULL, else it is name. If extension is the empty string, "", then the file name will be name. . RETURN VALUE
filepath returns NULL on failure, ie the file is not in the pathes, or the absolute path on success. The value returned, when not NULL, is stored in a static buffer, so this values is to use at return time or copied into a user buffer. EXAMPLE
#include <stdio.h> #include "mut.h" #include "mph.h" void vti_error(fig, error) phfig_list *fig; char *(*error)(); { fprintf(stderr, "Syntax error in %s ", filepath(fig->NAME, "cp")); fprintf(stderr, "%s ", error()); } SEE ALSO
mbk(1), MBK_WORK_LIB(1), MBK_CATA_LIB(1), mbkfopen(3). mbkunlink(3). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 FILEPATH(3)

Check Out this Related Man Page

INSTR(3)						       MBK UTILITY FUNCTIONS							  INSTR(3)

NAME
instr - find an occurence of a string in a string, starting at a specified character. ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr SYNOPSYS
#include "mut.h" char *instr(s, find, from) char *s, *find, from; PARAMETERS
s Pointer to the string to be searched for the pattern find Pointer to the string to be found, the pattern from Character to be searched backwards before searching for the pattern DESCRIPTION
instr searches the first occurence of the string find in the string s, starting its search at the last occurence of the from character in the string s. If either s or find is NULL, the function returns NULL. If from is (char)0, the pattern is searched from the begining of s. This quite exotic behaviour is useful to search the occurence of a name in a string resulting from a flatten, when only a terminal object name is to be taken into account. RETURN VALUES
instr return NULL either if the pattern find is not present in the searched string s, or if one at least of these two string are NULL. If the pattern is found, a value different from NULL is returned. EXAMPLE
#include "mut.h" /* check for the pattern 'ck' anywhere in the string */ #define contains_ck(name)instr(name, "ck", ' ') /* check for the pattern 'ck' in the signal name, not instance ones */ #define isclock(ptsig) instr(getsigname(ptsig), "ck", SEPAR) SEE ALSO
mbk(1), isvdd(3), isvss(3). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 INSTR(3)
Man Page