FOSSology  4.4.0
Open Source License Compliance by Open Source Software
match.c File Reference
#include "buckets.h"
Include dependency graph for match.c:

Go to the source code of this file.

Functions

FUNCTION int matchAnyLic (PGresult *result, int numLics, regex_t *compRegex)
 Does this regex match any license name for this pfile? More...
 

Detailed Description

Matching license names with pfile contents using regex

Definition in file match.c.

Function Documentation

◆ matchAnyLic()

FUNCTION int matchAnyLic ( PGresult *  result,
int  numLics,
regex_t *  compRegex 
)

Does this regex match any license name for this pfile?

Parameters
resultResults from select of lic names for this pfile
numLicsNumber of lics in result
compRegexptr to compiled regex to check
Returns
1=true, 0=false

Definition at line 24 of file match.c.