Component: CFunction 
---------------------

Functions to load C libraries and call functions.

To integrate a library written for C where you have the C headers and know the parameters and return types.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [10.3](newinversion103.md "First functions introduced with version 10.3.") / [14.3](newinversion143.md "Newest functions in version 14.3.") | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [CFunction.AllocateArray](CFunctionAllocateArray.md)   Allocates an array parameter. | All   10.3 |
| [CFunction.Call](CFunctionCall.md)   Calls a C function. | All   10.3 |
| [CFunction.FreeArray](CFunctionFreeArray.md)   Free an array parameter. | All   10.3 |
| [CFunction.GetArray](CFunctionGetArray.md)   Queries values of an array. | All   10.3 |
| [CFunction.GetArrayByteSize](CFunctionGetArrayByteSize.md)   Queries byte size of allocated array. | All   10.3 |
| [CFunction.GetTag](CFunctionGetTag.md)   Queries the tag value. | All   14.3 |
| [CFunction.List](CFunctionList.md)   Lists all IDs of function objects. | All   13.0 |
| [CFunction.Name](CFunctionName.md)   Queries name of the function. | All   10.3 |
| [CFunction.ParameterCount](CFunctionParameterCount.md)   Queries parameter count for function. | All   10.3 |
| [CFunction.ParameterType](CFunctionParameterType.md)   Queries parameter type for a parameter. | All   10.3 |
| [CFunction.Release](CFunctionRelease.md)   Releases the function and all memory used for it. | All   10.3 |
| [CFunction.ReleaseAll](CFunctionReleaseAll.md)   Frees all functions. | All   10.5 |
| [CFunction.ReturnType](CFunctionReturnType.md)   Queries return type. | All   10.3 |
| [CFunction.SetArray](CFunctionSetArray.md)   Sets values of an array. | All   10.3 |
| [CFunction.SetTag](CFunctionSetTag.md)   Sets the tag value. | All   14.3 |
| [CLibrary.GetTag](CLibraryGetTag.md)   Queries the tag value. | All   14.3 |
| [CLibrary.List](CLibraryList.md)   Lists all IDs of library objects. | All   13.0 |
| [CLibrary.Load](CLibraryLoad.md)   Loads a C library. | All   10.3 |
| [CLibrary.LoadFunction](CLibraryLoadFunction.md)   Loads a function from a library. | All   10.3 |
| [CLibrary.Name](CLibraryName.md)   Queries name of the library. | All   10.3 |
| [CLibrary.Release](CLibraryRelease.md)   Releases the library and all memory used for it. | All   10.3 |
| [CLibrary.ReleaseAll](CLibraryReleaseAll.md)   Frees all libraries. | All   10.5 |
| [CLibrary.SetTag](CLibrarySetTag.md)   Sets the tag value. | All   14.3 |
| [CLibrary.Symbols](CLibrarySymbols.md)   Queries list of symbols of a library. | All   10.3 |

24 functions shown.

These functions require a license (67%).

### Release notes

- **Version 14.3**
    - Added [CFunction.GetTag](https://www.mbsplugins.eu/CFunctionGetTag.shtml), [CFunction.SetTag](https://www.mbsplugins.eu/CFunctionSetTag.shtml), [CLibrary.GetTag](https://www.mbsplugins.eu/CLibraryGetTag.shtml) and [CLibrary.SetTag](https://www.mbsplugins.eu/CLibrarySetTag.shtml) functions.
- **Version 13.0**
    - Added [CFunction.List](https://www.mbsplugins.eu/CFunctionList.shtml) and [CLibrary.List](https://www.mbsplugins.eu/CLibraryList.shtml) functions.
- **Version 10.5**
    - Added [CFunction.ReleaseAll](https://www.mbsplugins.eu/CFunctionReleaseAll.shtml), [CGImageSource.ReleaseAll](https://www.mbsplugins.eu/CGImageSourceReleaseAll.shtml), [CLibrary.ReleaseAll](https://www.mbsplugins.eu/CLibraryReleaseAll.shtml), [DynaPDF.ReleaseAll](https://www.mbsplugins.eu/DynaPDFReleaseAll.shtml), [ECKey.ReleaseAll](https://www.mbsplugins.eu/ECKeyReleaseAll.shtml), [FSEvents.ReleaseAll](https://www.mbsplugins.eu/FSEventsReleaseAll.shtml), [MarkDown.ReleaseAll](https://www.mbsplugins.eu/MarkDownReleaseAll.shtml), [MenuItem.ReleaseAll](https://www.mbsplugins.eu/MenuItemReleaseAll.shtml), [SendMail.ReleaseAll](https://www.mbsplugins.eu/SendMailReleaseAll.shtml), [Shell.ReleaseAll](https://www.mbsplugins.eu/ShellReleaseAll.shtml), [SmartCard.ReleaseAll](https://www.mbsplugins.eu/SmartCardReleaseAll.shtml), [TouchBar.ReleaseAll](https://www.mbsplugins.eu/TouchBarReleaseAll.shtml), [UserNotification.ReleaseAll](https://www.mbsplugins.eu/UserNotificationReleaseAll.shtml), [WMFP.ReleaseAll](https://www.mbsplugins.eu/WMFPReleaseAll.shtml), [WMIQuery.ReleaseAll](https://www.mbsplugins.eu/WMIQueryReleaseAll.shtml) and [WindowsUserNotification.ReleaseAll](https://www.mbsplugins.eu/WindowsUserNotificationReleaseAll.shtml).
- **Version 10.3**
    - Added [CLibrary](https://www.mbsplugins.eu/component_CLibrary.shtml) and [CFunction](https://www.mbsplugins.eu/component_CFunction.shtml) functions to load C libraries and call functions.

### Blog Entries

- [Calling C functions from FileMaker](https://www.mbsplugins.de/archive/2024-01-09/Calling_C_functions_from_FileM/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, June 2021 News](https://www.mbsplugins.de/archive/2021-06-01/MBS_FileMaker_Plugin_June_2021/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 10.3 - More than 6200 Functions In One Plugin](https://www.mbsplugins.de/archive/2020-07-21/MBS_FileMaker_Plugin_103_-_Mor/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2020, Seite 25](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)

[HTML Version](component_CLibrary.shtml)