---
name: "ppd_get_num_conflicts"
section: "3"
platform: "linux"
package: "libppd-dev"
version: "2:0.10-9"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/ppd_get_num_conflicts"
---

# ppd\_get\_num\_conflicts(3)

Check a PPD file for conflicts

## NAME

ppd\_get\_num\_conflicts - Check a PPD file for conflicts

## SYNOPSIS

**#include \<ppd.h\>**

**int ppd\_get\_num\_conflicts (PpdFile \*ppd);**

## DESCRIPTION

The **ppd\_get\_num\_conflicts()** function is used to determine the number of option conflicts within a given PPD file.  The input to ppd\_get\_num\_conflicts is a pointer to a PpdFile structure which is obtained by one of the **[ppd\_file\_new(3)](/ppd_file_new/3.md)** functions.

## RETURN VALUE

The integer returned from the functions is the number of option conflicts located in the PPD file.  Note that if the  input parameter is a NULL pointer, the function will return 0.

## SEE ALSO

[ppd\_file\_new(3)](/ppd_file_new/3.md), [ppd\_emit\_to\_file(3)](/ppd_emit_to_file/3.md), [ppd\_file\_free(3)](/ppd_file_free/3.md), [ppd\_find\_choice(3)](/ppd_find_choice/3.md), [ppd\_check\_option\_is\_marked(3)](/ppd_check_option_is_marked/3.md), [ppd\_get\_page\_length(3)](/ppd_get_page_length/3.md)

## AUTHOR

This man page was written by Gerald Carter \<gcarter@valinux.com\>. It was updated by Mark Fasheh \<mfasheh@valinux.com\> to reflect  changes in libppd 0.5 Some of the code for these functions was originally part of the Common UNIX Printing System (CUPS).
