---
title: kev_vendor_code_find
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.9+]
path: kernel/1446965-kev_vendor_code_find
---

# kev_vendor_code_find

## Declaration

```occ
errno_t kev_vendor_code_find(const char *vendor_string, u_int32_t *vendor_code);
```

## Parameters

- `vendor_string`: A bundle style vendor identifier(i.e. com.apple).
- `vendor_code`: Upon return, a unique vendor code for use when posting kernel events.

## Return Value

Return Value May return ENOMEM if memory constraints prevent allocation of a new vendor code.

## Discussion

Discussion Lookup a vendor_code given a unique string. If the vendor code has not been used since launch, a unique integer will be assigned for that string. Vendor codes will remain the same until the machine is rebooted.
