---
title: malloc
framework: accelerate
role: symbol
role_heading: Instance Property
path: accelerate/sparsesymbolicfactoroptions/malloc
---

# malloc

The function for allocating any necessary storage.

## Declaration

```swift
var malloc: (Int) -> UnsafeMutableRawPointer?
```

## Parameters

- `size`: The size of space to allocate in bytes.

## Return Value

Return Value A pointer to newly allocated memory, or nil if allocation fails.

## Discussion

Discussion The system frees memory through the free callback. If this function pointer is nil, the system uses malloc().

## See Also

### Inspecting Symbolic Factor Options

- [control](accelerate/sparsesymbolicfactoroptions/control.md)
- [SparseControl_t](accelerate/sparsecontrol_t.md)
- [orderMethod](accelerate/sparsesymbolicfactoroptions/ordermethod.md)
- [order](accelerate/sparsesymbolicfactoroptions/order.md)
- [SparseOrder_t](accelerate/sparseorder_t.md)
- [ignoreRowsAndColumns](accelerate/sparsesymbolicfactoroptions/ignorerowsandcolumns.md)
- [free](accelerate/sparsesymbolicfactoroptions/free.md)
- [reportError](accelerate/sparsesymbolicfactoroptions/reporterror.md)
