mg_open.md 272 Bytes
Newer Older
1 2 3 4 5 6 7 8
---
title: "mg_open()"
decl_name: "mg_open"
symbol_kind: "func"
signature: |
  int mg_open(const char *path, int flag, int mode);
---

9
Opens the given file and returns a file stream.
10 11 12 13 14

`path` should be UTF8 encoded.

Return value is the same as for the `open()` syscall.