# std.fs.path: make relative a pure function · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/08447ca47ed2ece816de9b0c5735be3f17edc6ca)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 08447ca47ed2ece816de9b0c5735be3f17edc6ca

Requested commit: 08447ca47ed2ece816de9b0c5735be3f17edc6ca

Commit: 08447ca47ed2ece816de9b0c5735be3f17edc6ca

Tree: 99b9fa99c03f259c31e7673d5515ae20aff07b5d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.fs.path: make relative a pure function

Instead of querying the operating system for current working directory
and environment variables, this function now accepts those things as
inputs.

```

## Parents

- [b64491f2d6e7b6d6d643ce1eff6d24873e414f08](https://git.cafe/gitcafe/zig/commit/b64491f2d6e7b6d6d643ce1eff6d24873e414f08?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/08447ca47ed2ece816de9b0c5735be3f17edc6ca?format=markdown)
