---
name: "s3d_open_file"
section: "3"
platform: "linux"
package: "s3d-doc"
version: "0.2.2.1-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/s3d_open_file"
---

# s3d\_open\_file(3)

copy file into memory

## NAME

s3d\_open\_file - copy file into memory

## SYNOPSIS

```
#include <s3d.h>
```

**int s3d\_open\_file(const char \****fname***, char \*\****pointer***);**

## DESCRIPTION

This opens the file fname, setting \*pointer to it's memory position. the function will return the size of buffer. you can free() the pointer when you're finished.

## AUTHOR

**Simon Wunderlich**

Author of s3d
