---
title: "CFRangeMake(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfrangemake(_:_:)"
---

# CFRangeMake(_:_:)

Declares and initializes a CFRange structure.

## Declaration

```swift
func CFRangeMake(_ loc: CFIndex, _ len: CFIndex) -> CFRange
```

## Parameters

- `loc`: The starting location of the range.
- `len`: The length of the range.

## Return Value

Return Value An initialized structure of type CFRange.

## Discussion

Discussion This is an in-line convenience function for creating initialized CFRange structures.
