A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://reference.wolfram.com/language/ref/compiledtype/CArray.html below:

CArray—Wolfram Documentation

WOLFRAM Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

WolframConsulting.com

"CArray"::[type]

represents an array type compatible with C, containing elements of the specified type.

Details Properties Runtime Errors Examplesopen all close all Basic Examples  (3)

Create a memory-managed C array, and then access one of its elements:

Represent a function from an external library that takes a C array as an argument:

Compile a program that creates a C array and calls the function:

Compile a program that creates a C array and then frees it:

Possible Issues  (1)

C arrays created outside of a "Managed" object are not automatically memory managed, and must be freed manually. Compile a function that creates unmanaged C arrays:

The function leaks memory:

Use DeleteObject to manually free the C arrays:

The resulting function does not leak memory:

History

Introduced in 2022 (13.1)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4